Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 611d85e

Browse files
committed
Force initializers of SS.Text static ctors
1 parent 2ac74c6 commit 611d85e

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/ServiceStack.Redis/BasicRedisClientManager.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
using System;
1414
using System.Collections.Generic;
1515
using System.Threading;
16+
using ServiceStack.Text;
1617

1718
namespace ServiceStack.Redis
1819
{
@@ -80,6 +81,8 @@ public BasicRedisClientManager(
8081

8182
this.OnFailover = new List<Action<IRedisClientsManager>>();
8283

84+
JsConfig.InitStatics();
85+
8386
this.OnStart();
8487
}
8588

src/ServiceStack.Redis/PooledRedisClientManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using System.Threading;
1818
using ServiceStack.Caching;
1919
using ServiceStack.Logging;
20+
using ServiceStack.Text;
2021

2122
namespace ServiceStack.Redis
2223
{
@@ -139,6 +140,7 @@ public PooledRedisClientManager(
139140
? poolTimeOutSeconds * 1000
140141
: 2000; //Default Timeout
141142

143+
JsConfig.InitStatics();
142144

143145
if (this.Config.AutoStart)
144146
{

src/ServiceStack.Redis/RedisManagerPool.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Threading;
88
using ServiceStack.Caching;
99
using ServiceStack.Logging;
10+
using ServiceStack.Text;
1011

1112
namespace ServiceStack.Redis
1213
{
@@ -71,6 +72,8 @@ public RedisManagerPool(IEnumerable<string> hosts, RedisPoolConfig config)
7172

7273
clients = new RedisClient[MaxPoolSize];
7374
poolIndex = 0;
75+
76+
JsConfig.InitStatics();
7477
}
7578

7679
public void FailoverTo(params string[] readWriteHosts)

0 commit comments

Comments
 (0)