public virtual void Dispose() { this.Stop(); if (EndpointHost.Config.ServiceManager != null) { EndpointHost.Config.ServiceManager.Dispose(); } }