コード例 #1
0
 private SessionCacheWithBackup()
 {
     _memcachedClientSection = ConfigurationManager.GetSection(DefaultConfigSection) as MemcachedClientSection;
     _locatorImpl = new SessionNodeLocatorImpl();
     _sessionKeyFormat = new SessionKeyFormat();
 }
コード例 #2
0
 internal void ResetMemcachedClient(string memcachedConfigSection)
 {
     if (_client != null)
     {
         _client.Dispose();
         _client = null;
     }
     _locatorImpl = new SessionNodeLocatorImpl();
     _memcachedClientSection = ConfigurationManager.GetSection(memcachedConfigSection) as MemcachedClientSection;
     InitializeClient();
 }
コード例 #3
0
 internal void ResetMemcachedClient(IMemcachedClient newClient, SessionNodeLocatorImpl newLocator)
 {
     if (_client != null) _client.Dispose();
     _client = newClient;
     _locatorImpl = newLocator ?? _locatorImpl;
 }
コード例 #4
0
 internal void ResetLocator()
 {
     _locatorImpl = new SessionNodeLocatorImpl();
 }