public RealService() { // out channel _channelFactory = new ChannelFactory<IRemoteSubscriptionService>( new NetNamedPipeBinding(NetNamedPipeSecurityMode.None) { MaxReceivedMessageSize = 5000000, MaxBufferSize = 5000000 }, "net.pipe://WPFRealTime/SubscriptionService"); _proxy = _channelFactory.CreateChannel(); // in channel ServiceHost host = new ServiceHost(new ConnectionListener(this)); host.AddServiceEndpoint(typeof(IRemotePublishingService), new NetNamedPipeBinding(NetNamedPipeSecurityMode.None) { MaxReceivedMessageSize = 5000000, MaxBufferSize = 5000000 }, "net.pipe://WPFRealTime/Future/PublishingService"); host.Open(); }
public RealService() { // out channel _channelFactory = new ChannelFactory <IRemoteSubscriptionService>( new NetNamedPipeBinding(NetNamedPipeSecurityMode.None) { MaxReceivedMessageSize = 5000000, MaxBufferSize = 5000000 }, "net.pipe://WPFRealTime/SubscriptionService"); _proxy = _channelFactory.CreateChannel(); // in channel ServiceHost host = new ServiceHost(new ConnectionListener(this)); host.AddServiceEndpoint(typeof(IRemotePublishingService), new NetNamedPipeBinding(NetNamedPipeSecurityMode.None) { MaxReceivedMessageSize = 5000000, MaxBufferSize = 5000000 }, "net.pipe://WPFRealTime/Bond/PublishingService"); host.Open(); }