Ejemplo n.º 1
0
 public void Dispose()
 {
     if (_disposed)
     {
         return;
     }
     lock (_syncObject)
     {
         if (_disposed)
         {
             return;
         }
         _disposed = true;
         _context.Dispose();
     }
 }
Ejemplo n.º 2
0
 public void Dispose()
 {
     if (_disposed)
     {
         return;
     }
     lock (_syncObject)
     {
         if (_disposed)
         {
             return;
         }
         _disposed = true;
         _bootstrapper.Dispose();
         _context.Dispose();
         _meterForwarder?.Dispose();
     }
 }