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."); } }
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; }
void IPolicyImportExtension.ImportPolicy(MetadataImporter importer, PolicyConversionContext context) { ChannelMessageInterceptor messageInterceptor = CreateMessageInterceptor(); messageInterceptor.OnImportPolicy(importer, context); }
public InterceptingDuplexSessionChannel( ChannelManagerBase manager, ChannelMessageInterceptor interceptor, IDuplexSessionChannel innerChannel) : base(manager, interceptor, innerChannel) { this.innerSessionChannel = innerChannel; }
public InterceptingDuplexChannel( ChannelManagerBase manager, ChannelMessageInterceptor interceptor, IDuplexChannel innerChannel) : base(manager, interceptor, innerChannel) { }
public InterceptingInputChannel( ChannelManagerBase manager, ChannelMessageInterceptor interceptor, TChannel innerChannel) : base(manager, interceptor, innerChannel) { // empty }
protected InterceptingBindingElement(InterceptingBindingElement other) : base(other) { this.interceptor = other.Interceptor; }
public InterceptingBindingElement(ChannelMessageInterceptor interceptor) { this.interceptor = interceptor; }