Example #1
0
        public virtual bool CanBuildChannelListener <TChannel>(BindingContext context) where TChannel : class, IChannel
        {
            if (context == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context");
            }

            return(context.CanBuildInnerChannelListener <TChannel>());
        }
Example #2
0
        public override bool CanBuildChannelListener <TChannel>(BindingContext context)
        {
            if (context == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("context");
            }

            context.BindingParameters.Add(this);
            return(context.CanBuildInnerChannelListener <TChannel>());
        }
        internal bool InternalCanBuildChannelListener <TChannel>(BindingContext context)
            where TChannel : class, IChannel
        {
            if (context == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(context));
            }

            context.BindingParameters.Add(this);
            return(context.CanBuildInnerChannelListener <TChannel>());
        }
Example #4
0
        public virtual bool CanBuildChannelListener <TChannel>(BindingParameterCollection parameters) where TChannel : class, IChannel
        {
            BindingContext context = new BindingContext(new CustomBinding(this), parameters);

            return(context.CanBuildInnerChannelListener <TChannel>());
        }