Exemplo n.º 1
0
        public void InitializeChannel()
        {
            this.channelHandler = new ChannelHandler();
            this.channelHandler.OnMessageReceiveAndWaitAnserEvent = this.OnMessageReceiveAndWaitAnserEvent;

            this.serviceHost = new ServiceHost( this.channelHandler );

            this.binding = new NetNamedPipeBinding( NetNamedPipeSecurityMode.None );
            this.binding.MaxBufferSize = 2147483647;
            this.binding.MaxReceivedMessageSize = 2147483647;

            this.serviceHost.AddServiceEndpoint( typeof( IChannel ), this.binding, this.channelAddress );
        }
Exemplo n.º 2
0
        public void InitializeChannel()
        {
            this.channelHandler = new ChannelHandler();
            this.channelHandler.OnMessageReceiveAndWaitAnserEvent = this.OnMessageReceiveAndWaitAnserEvent;

            this.serviceHost = new ServiceHost(this.channelHandler);

            this.binding = new NetNamedPipeBinding(NetNamedPipeSecurityMode.None);
            this.binding.MaxBufferSize          = 2147483647;
            this.binding.MaxReceivedMessageSize = 2147483647;

            this.serviceHost.AddServiceEndpoint(typeof(IChannel), this.binding, this.channelAddress);
        }