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