public ContextStoreDependency(string key, object instance, IContextStoreDependencyCleaner cleaner)
 {
     if (key == null) throw new ArgumentNullException("key");
     if (instance == null) throw new ArgumentNullException("instance");
     Key = key;
     Instance = instance;
     Cleaner = cleaner;
 }
Пример #2
0
 public ContextStoreDependency(string key, object instance, IContextStoreDependencyCleaner cleaner)
 {
     if (key == null)
     {
         throw new ArgumentNullException("key");
     }
     if (instance == null)
     {
         throw new ArgumentNullException("instance");
     }
     Key      = key;
     Instance = instance;
     Cleaner  = cleaner;
 }