public void Initialize(int pageSize) { if (_persistence != null && !_persistence.IsDisposed) { _persistence.Drop(); _persistence.Dispose(); } _persistence = new PerformanceCounterPersistenceEngine(_createPersistence(pageSize), "tests"); _persistence.Initialize(); }
public void Initialize() { if (_persistence != null && !_persistence.IsDisposed) { _persistence.Drop(); _persistence.Dispose(); } #if !NETSTANDARD2_0 _persistence = new PerformanceCounterPersistenceEngine(_createPersistence(), "tests"); #else _persistence = _createPersistence(); #endif _persistence.Initialize(); }
public void Initialize() { if (_persistence?.IsDisposed == false) { _persistence.Drop(); _persistence.Dispose(); } #if NET461 _persistence = new PerformanceCounterPersistenceEngine(_createPersistence(), "tests"); #else _persistence = _createPersistence(); #endif _persistence.Initialize(); }
public void Dispose() { if (_persistence != null && !_persistence.IsDisposed) { _persistence.Drop(); } Persistence.Dispose(); }
public void Drop() { _original.Drop(); }
public void Drop() { _persistence.Drop(); }
public Task Drop() { return(_persistence.Drop()); }
public void Drop() { underlying.Drop(); }
protected override void Cleanup() { _process1.Drop(); _process1.Dispose(); _process2.Dispose(); }
public Task Drop() { return(_original.Drop()); }