public MyCustomDuplexSessionChannelFactory(MyCustomBindingElement bindingElement, BindingContext context) : base(context.Binding) { this.innerChannelFactory = context.BuildInnerChannelFactory <TChannel>(); if (this.innerChannelFactory == null) { throw new InvalidOperationException("InspectingChannelFactory requires an inner IChannelFactory."); } }
public MyCustomBindingElement(MyCustomBindingElement original) { }
protected override BindingElement CreateBindingElement() { MyCustomBindingElement bindingElement = new MyCustomBindingElement(); return(bindingElement); }