AspectSharp.Core.Dispatcher.DefaultInvocationDispatcher.ObtainInterceptorInstance C# (CSharp) Метод

ObtainInterceptorInstance() защищенный Метод

protected ObtainInterceptorInstance ( Type adviceType ) : IMethodInterceptor
adviceType System.Type
Результат IMethodInterceptor
		protected virtual IMethodInterceptor ObtainInterceptorInstance(Type adviceType)
		{
			IMethodInterceptor interceptor = _type2AdviceInstance[adviceType] as IMethodInterceptor;

			if (interceptor == null)
			{
				interceptor = Activator.CreateInstance(adviceType) as IMethodInterceptor;
				InitializeInterceptor(interceptor);
				_type2AdviceInstance[adviceType] = interceptor;
			}

			return interceptor;
		}