public static IInterceptronInterceptor ToInterceptronInterceptor(this DispatchProxyInterceptor interceptor)
        {
            if (interceptor == null)
            {
                throw new ArgumentNullException(nameof(interceptor));
            }

            return(new InterceptronInterceptorAdapter(interceptor));
        }
Пример #2
0
 public InterceptronInterceptorAdapter(DispatchProxyInterceptor interceptor)
 {
     this.Interceptor = interceptor ?? throw new ArgumentNullException(nameof(interceptor));
 }