public void Dispose() { if (_repository != null) { _repository.Dispose(); } }
public void Dispose() { Db.Dispose(); GC.Collect(); GC.WaitForPendingFinalizers(); //File.Delete(Path); }
protected override void Dispose(bool disposing) { if (disposing) { _repo.Dispose(); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (_repositorio != null) { _repositorio.Dispose(); } _repositorio = null; base.Dispose(disposing); }
private void Dispose(bool disposing) { if (disposing) { if (_liteRepository != null) { _liteRepository.Dispose(); _liteRepository = null; } } }
private bool _disposedValue = false; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { Repository.Dispose(); } _disposedValue = true; } }
protected StorageServiceBase(string connectionString, IMessageHub messageHub, ISystemClock systemClock) { logger = Log.ForContext(GetType()); this.connectionString = connectionString; this.messageHub = messageHub; this.systemClock = systemClock; var cs = new ConnectionString(connectionString); logger.SwallowError(() => Initialize(cs), ex => { repo?.Dispose(); cs = TryRotateDatabase(cs); Initialize(cs); }); }
public void Dispose() { db?.Dispose(); }
public void Dispose() { this.Flush(); _db.Dispose(); }
public void Dispose() { _liteRepository?.Dispose(); GC.SuppressFinalize(this); }
public void Dispose() { _liteDbRepo?.Dispose(); }
public void Dispose() { _db.Dispose(); }