Beispiel #1
0
 public static ContextualReflectionScope Lock(string key)
 {
     if (Cache.ContainsKey(key))
     {
         return(((DomainBase)(Cache[key].Target)).EnterContextualReflection());
     }
     return(Default.EnterContextualReflection());
 }
Beispiel #2
0
 public static ContextualReflectionScope Lock(DomainBase domain)
 {
     return(domain.EnterContextualReflection());
 }