public IServiceDispatcher BuildServiceDispatcher <TChannel>(BindingContext context, IServiceDispatcher innerDispatcher) where TChannel : class, IChannel { if (_context != null) { IServiceDispatcher listener = _context.BuildNextServiceDispatcher <TChannel>(innerDispatcher);// .BuildInnerChannelListener<TChannel>(); // this.listenUri = listener.Uri; _context = null; return(listener); } else { return(Binding.BuildServiceDispatcher <TChannel>(BindingParameters, innerDispatcher)); } }
public virtual IServiceDispatcher BuildServiceDispatcher <TChannel>(Uri listenUriBaseAddress, string listenUriRelativeAddress, BindingParameterCollection parameters, IServiceDispatcher dispatcher) where TChannel : class, IChannel { EnsureInvariants(); BindingContext context = new BindingContext(new CustomBinding(this), parameters, listenUriBaseAddress, listenUriRelativeAddress); IServiceDispatcher serviceDispatcher = context.BuildNextServiceDispatcher <TChannel>(dispatcher); context.ValidateBindingElementsConsumed(); // TODO: Work out how to validate security capabilities //this.ValidateSecurityCapabilities(serviceDispatcher.GetProperty<ISecurityCapabilities>(), parameters); return(serviceDispatcher); }
public virtual IServiceDispatcher BuildServiceDispatcher <TChannel>(BindingContext context, IServiceDispatcher innerDispatcher) where TChannel : class, IChannel { if (context == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context)); } if (innerDispatcher == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(innerDispatcher)); } return(context.BuildNextServiceDispatcher <TChannel>(innerDispatcher)); }
public override IServiceDispatcher BuildServiceDispatcher <TChannel>(BindingContext context, IServiceDispatcher innerDispatcher) { if (context == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context)); } if (innerDispatcher == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(innerDispatcher)); } VerifyCompression(context); SetMaxReceivedMessageSizeFromTransport(context); return(context.BuildNextServiceDispatcher <TChannel>(innerDispatcher)); }
public IServiceDispatcher BuildServiceDispatcher <TChannel>(BindingContext context, IServiceDispatcher innerDispatcher) where TChannel : class, IChannel { return(context.BuildNextServiceDispatcher <TChannel>(innerDispatcher)); }