コード例 #1
0
        internal static ContractImpl FindImpl(Type contractType)
        {
            ContractImplList list = null;

            if (_allServices.TryGetValue(contractType, out list))
            {
                return(list.Default());
            }
            return(null);
        }
コード例 #2
0
        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);
        }