コード例 #1
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 protected AspNetCoreBinding()
 {
     transport = new AspNetCoreTransportBindingElement();
     encoding  = new TextOrMtomEncodingBindingElement()
     {
         MessageVersion = MessageVersion.Soap11
     };
 }
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="incoming"></param>
 protected AspNetCoreBindingBase()
 {
     this.transport    = new AspNetCoreTransportBindingElement();
     this.textEncoding = new TextMessageEncodingBindingElement();
     this.textEncoding.MessageVersion = MessageVersion.Soap11;
     this.mtomEncoding = new MtomMessageEncodingBindingElement();
     this.mtomEncoding.MessageVersion = MessageVersion.Soap11;
 }
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="router"></param>
 /// <param name="transportElement"></param>
 /// <param name="context"></param>
 public AspNetCoreReplyChannelListener(
     AspNetCoreRequestRouter router,
     AspNetCoreTransportBindingElement transportElement,
     BindingContext context) :
     base(context.Binding)
 {
     this.router         = router ?? throw new ArgumentNullException(nameof(router));
     this.bufferManager  = BufferManager.CreateBufferManager(transportElement.MaxBufferPoolSize, (int)transportElement.MaxReceivedMessageSize);
     this.encoderFactory = context.BindingParameters.Remove <MessageEncodingBindingElement>().CreateMessageEncoderFactory();
     this.uri            = AspNetCoreUri.GetUri(context.ListenUriBaseAddress.AbsolutePath + context.ListenUriRelativeAddress);
     this.sync           = new SemaphoreSlim(5);
 }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance.
        /// </summary>
        /// <param name="router"></param>
        /// <param name="transportElement"></param>
        /// <param name="context"></param>
        public AspNetCoreReplyChannelListener(
            AspNetCoreRequestRouter router,
            AspNetCoreTransportBindingElement transportElement,
            BindingContext context) :
            base(context.Binding)
        {
            this.router = router ?? throw new ArgumentNullException(nameof(router));

            bufferManager  = BufferManager.CreateBufferManager(transportElement.MaxBufferPoolSize, (int)transportElement.MaxReceivedMessageSize);
            encoderFactory = context.BindingParameters.Remove <MessageEncodingBindingElement>().CreateMessageEncoderFactory();
            uri            = new Uri(context.ListenUriBaseAddress, context.ListenUriRelativeAddress);
            secure         = transportElement.Secure;
            method         = transportElement.Method;
        }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 public AspNetCoreTransportBindingElement(AspNetCoreTransportBindingElement other) :
     this()
 {
 }