public InterceptingChannelFactory(ChannelMessageInterceptor interceptor, BindingContext context)
 {
     this.interceptor         = interceptor;
     this.innerChannelFactory = context.BuildInnerChannelFactory <TChannel>();
     if (this.innerChannelFactory == null)
     {
         throw new InvalidOperationException("InterceptingChannelFactory requires an inner IChannelFactory.");
     }
 }
Exemplo n.º 2
0
        protected InterceptingChannelBase(
            ChannelManagerBase manager, ChannelMessageInterceptor interceptor, TChannel innerChannel)
            : base(manager)
        {
            if (innerChannel == null)
            {
                throw new ArgumentException("InterceptingChannelBase requires a non-null inner channel.", "innerChannel");
            }

            this.interceptor  = interceptor;
            this.innerChannel = innerChannel;
        }
Exemplo n.º 3
0
 public InterceptingDuplexSessionChannel(
     ChannelManagerBase manager, ChannelMessageInterceptor interceptor, IDuplexSessionChannel innerChannel)
     : base(manager, interceptor, innerChannel)
 {
     this.innerSessionChannel = innerChannel;
 }
Exemplo n.º 4
0
 public InterceptingDuplexChannel(
     ChannelManagerBase manager, ChannelMessageInterceptor interceptor, IDuplexChannel innerChannel)
     : base(manager, interceptor, innerChannel)
 {
     // empty
 }
Exemplo n.º 5
0
 public InterceptingInputChannel(
     ChannelManagerBase manager, ChannelMessageInterceptor interceptor, TChannel innerChannel)
     : base(manager, interceptor, innerChannel)
 {
     // empty
 }
Exemplo n.º 6
0
        void IPolicyImportExtension.ImportPolicy(MetadataImporter importer, PolicyConversionContext context)
        {
            ChannelMessageInterceptor messageInterceptor = CreateMessageInterceptor();

            messageInterceptor.OnImportPolicy(importer, context);
        }
 protected InterceptingBindingElement(InterceptingBindingElement other)
     : base(other)
 {
     this.interceptor = other.Interceptor;
 }
 public InterceptingBindingElement(ChannelMessageInterceptor interceptor)
 {
     this.interceptor = interceptor;
 }