Exemple #1
0
        public RouterBinding(RouterTransport transport)
            : this()
        {
            this.Transport = transport;

            if (transport == RouterTransport.NamedPipe || transport == RouterTransport.Tcp)
            {
                this.MessageEncoding = MessageEncoding.Binary;
            }
        }
Exemple #2
0
        void Initialize()
        {
            this.httpTransport      = new HttpTransportBindingElement();
            this.tcpTransport       = new TcpTransportBindingElement();
            this.namedPipeTransport = new NamedPipeTransportBindingElement();

            this.textEncoding   = new TextMessageEncodingBindingElement();
            this.mtomEncoding   = new MtomMessageEncodingBindingElement();
            this.binaryEncoding = new BinaryMessageEncodingBindingElement();

            this.httpTransport.ManualAddressing      = true;
            this.tcpTransport.ManualAddressing       = true;
            this.namedPipeTransport.ManualAddressing = true;

            this.transport       = RouterTransport.Http;
            this.messageEncoding = MessageEncoding.Text;
        }