/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose(bool disposing) { if (disposing) { logger.Debug("Disposing service"); server.Dispose(); logger.Debug("Service disposed"); } base.Dispose(disposing); }