protected override void Dispose(bool disposing) { if (disposing) { _repo.Dispose(); } base.Dispose(disposing); }
/// <summary> /// Overriding Dispose method /// </summary> /// <param name="disposing">disposing</param> protected virtual void Dispose(bool disposing) { if (!this._disposed) { if (disposing) { _repository.Dispose(); _apiHelper.Dispose(); } } this._disposed = true; }
public void Dispose() { _database.Dispose(); }