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