public void Stop() { if ((_serviceHost != null) && (_serviceHost.State != CommunicationState.Closed)) { _serviceHost.Close(); _serviceHost = null; } _service = null; }
public void Stop() { if ((_serviceHost != null) && (_serviceHost.State != CommunicationState.Closed)) { _serviceHost.Close(); _serviceHost = null; } _service = null; }
public WcfChannelHost(Fiber fiber, UntypedChannel output, Uri serviceUri, string pipeName) { _serviceUri = serviceUri; var channel = new DeserializeMessageEnvelopeChannel <WcfMessageEnvelope>(fiber, new FastTextSerializer(), output); _service = new WcfChannelService <WcfMessageEnvelope>(channel); _serviceHost = new ServiceHost(_service, _serviceUri); _serviceHost.AddServiceEndpoint(typeof(WcfChannel <WcfMessageEnvelope>), new NetNamedPipeBinding(), pipeName); _serviceHost.Open(); }
public WcfChannelHost(Fiber fiber, UntypedChannel output, Uri serviceUri, string pipeName) { _serviceUri = serviceUri; var channel = new DeserializeMessageEnvelopeChannel<WcfMessageEnvelope>(fiber, new FastTextSerializer(), output); _service = new WcfChannelService<WcfMessageEnvelope>(channel); _serviceHost = new ConfigurationFreeServiceHost(_service, _serviceUri); _serviceHost.AddServiceEndpoint(typeof(WcfChannel<WcfMessageEnvelope>), new NetNamedPipeBinding(), pipeName); _serviceHost.Open(); }