Ejemplo n.º 1
0
 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));
     }
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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));
        }
Ejemplo n.º 5
0
 public IServiceDispatcher BuildServiceDispatcher <TChannel>(BindingContext context, IServiceDispatcher innerDispatcher) where TChannel : class, IChannel
 {
     return(context.BuildNextServiceDispatcher <TChannel>(innerDispatcher));
 }