Beispiel #1
0
        private void CreateChannel()
        {
            NetNamedPipeBinding binding = new NetNamedPipeBinding();

            binding.MaxReceivedMessageSize = 2147483647;
            binding.MaxBufferSize          = 2147483647;
            pipeFactory = new ChannelFactory <IWCFMethods>(binding, new EndpointAddress("net.pipe://localhost/" + Win32Hooks.HookManager.Instance.PipeName));
            pipeProxy   = pipeFactory.CreateChannel();
        }
Beispiel #2
0
        private void CreateChannel()
        {
            NetNamedPipeBinding binding = new NetNamedPipeBinding();
            binding.MaxReceivedMessageSize = 2147483647;
            binding.MaxBufferSize = 2147483647;

            pipeFactory = new ChannelFactory<IWCFMethods>( binding,new EndpointAddress("net.pipe://localhost/" + pipeName));
            pipeProxy =	pipeFactory.CreateChannel();
        }