public static ContextualReflectionScope Lock(string key) { if (DomainDic.ContainsKey(key)) { return(((AssemblyDomain)(DomainDic[key].Target)).EnterContextualReflection()); } return(Default.EnterContextualReflection()); }
public static ContextualReflectionScope Lock(AssemblyDomain domain) { return(domain.EnterContextualReflection()); }