Exemplo n.º 1
0
 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();
        }
Exemplo n.º 4
0
        public void Dispose()
        {
            if (_persistence != null && !_persistence.IsDisposed)
            {
                _persistence.Drop();
            }

            Persistence.Dispose();
        }
Exemplo n.º 5
0
 public void Drop()
 {
     _original.Drop();
 }
Exemplo n.º 6
0
 public void Drop()
 {
     _persistence.Drop();
 }
Exemplo n.º 7
0
 public Task Drop()
 {
     return(_persistence.Drop());
 }
 public void Drop()
 {
     underlying.Drop();
 }
Exemplo n.º 9
0
 protected override void Cleanup()
 {
     _process1.Drop();
     _process1.Dispose();
     _process2.Dispose();
 }
Exemplo n.º 10
0
 public Task Drop()
 {
     return(_original.Drop());
 }