public void Stop() { if (_serviceHost != null && _serviceHost.State == CommunicationState.Opened) _serviceHost.Close(); Trace.Information("Stopped"); }