예제 #1
0
 public static void Setup(ICacheChannel channel, bool isEnabled, TimeSpan defaultExpirationTime, string bucket, string server)
 {
     _activeChannel         = channel;
     _isEnabled             = isEnabled;
     _server                = server;
     _bucket                = bucket;
     _defaultExpirationTime = defaultExpirationTime;
 }
예제 #2
0
 static void ConfigurationChanged(ConfigurationEventArgs args)
 {
     // Empty the default values
     _activeChannel         = null;
     _isEnabled             = false;
     _server                = string.Empty;
     _bucket                = string.Empty;
     _defaultExpirationTime = default(TimeSpan);
 }