public void Dispose() { sut.Database.FlushDatabase(); mux.GetSubscriber().UnsubscribeAll(); sut.Database.Multiplexer.Dispose(); sut.Dispose(); }
public void Dispose() { Db.FlushDatabase(); Db.Multiplexer.GetSubscriber().UnsubscribeAll(); Db.Multiplexer.Dispose(); Sut.Dispose(); }
public override void Dispose() { base.Dispose(); redis?.Dispose(); cache?.Dispose(); messageProducer?.Dispose(); }
public void Dispose() { _cache.Dispose(); _messageBus.Dispose(); var muxer = SharedConnection.GetMuxer(); muxer.FlushAllAsync().GetAwaiter().GetResult(); }
private void button4_Click(object sender, EventArgs e) { for (int i = 0; i < 10; i++) { ICacheClient client1 = prcm.GetCacheClient(); client1.Dispose(); } }
public void OnBeforeEachTest() { if (cacheClient != null) { cacheClient.Dispose(); } cacheClient = new RedisClient(TestConfig.SingleHost); cacheClient.FlushAll(); }
public virtual void Dispose() { if (cache != null) { cache.Dispose(); } if (db != null) { db.Dispose(); } }
public void Reset() { if (_client != null) { _client.Dispose(); } _client = null; _isInitialized = false; Initialize(); }
public virtual void Dispose() { try { if (this.ChildPage != null) { this.ChildPage.Dispose(); } this.ChildPage = null; } catch { } try { if (cache != null) { cache.Dispose(); } cache = null; } catch { } try { if (db != null) { db.Dispose(); } db = null; } catch { } try { if (redis != null) { redis.Dispose(); } redis = null; } catch { } try { if (messageProducer != null) { messageProducer.Dispose(); } messageProducer = null; } catch { } }
public override void Dispose() { base.Dispose(); if (redis != null) { redis.Dispose(); } if (cache != null) { cache.Dispose(); } if (messageProducer != null) { messageProducer.Dispose(); } }
public virtual void Dispose() { if (cache != null) { cache.Dispose(); } if (db != null) { db.Dispose(); } if (redis != null) { redis.Dispose(); } if (messageProducer != null) { messageProducer.Dispose(); } }
/// <summary> /// 构造函数 /// </summary> public RedisCacheProvider() { if (cacheClient != null) { cacheClient.Dispose(); } cacheClient = new RedisClient(); try { string path = WebHelper.GetConfigFilePath("rediscache.config"); RedisConfigInfo configInfo = (RedisConfigInfo)XmlHelper.DeserializeFromXML(typeof(RedisConfigInfo), path); if (configInfo != null) { string pwd = string.IsNullOrEmpty(configInfo.Pwd) ? null : configInfo.Pwd; RedisEndpoint point = new RedisEndpoint(configInfo.Host, configInfo.Port, pwd, configInfo.InitalDB); cacheClient = new RedisClient(point); } } catch { } cacheClient.FlushAll(); }
public virtual void Dispose() { try { this.ChildPage?.Dispose(); this.ChildPage = null; } catch { } try { cache?.Dispose(); cache = null; } catch { } try { db?.Dispose(); db = null; } catch { } try { redis?.Dispose(); redis = null; } catch { } try { messageProducer?.Dispose(); messageProducer = null; } catch { } try { using (authRepository as IDisposable) { } authRepository = null; } catch { } }
public void Dispose() { cache.Dispose(); }
public void Dispose() { _cache.Dispose(); _messageBus.Dispose(); }
public void Dispose() { _redisClient?.Dispose(); }
public void TestFixtureTearDown() { Cache.Dispose(); }
public void Dispose() { _cacheClient.Dispose(); }
public void Dispose() { _distributedCache.Dispose(); _messageBus.Dispose(); }
public void OneTimeTearDown() { Cache.Dispose(); }