internal static ContractImpl FindImpl(Type contractType) { ContractImplList list = null; if (_allServices.TryGetValue(contractType, out list)) { return(list.Default()); } return(null); }
internal static ContractImpl FindImpl(Type contractType) { //try //{ // _lock.EnterReadLock(); ContractImplList list = null; if (_allServices.TryGetValue(contractType, out list)) { return(list.Default()); } //} //finally //{ // _lock.ExitReadLock(); //} return(null); }