protected virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             _monitoringContext?.Dispose();
         }
     }
     disposed = true;
 }
Пример #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
                    _context.Dispose();
                }
            }

            _disposed = true;
        }
Пример #3
0
 public void Dispose()
 {
     monitoringContext.Dispose();
 }