/// <summary> /// Dispose service /// </summary> public void Dispose() { if (this.service != null) { this.service.Close(); this.service = null; } }
/// <summary> /// Dispose service /// </summary> /// <param name="disposing">Disposing flag</param> protected virtual void Dispose(bool disposing) { if (disposing) { if (this.service != null) { this.service.Close(); this.service = null; } } }