예제 #1
0
 public void Dispose()
 {
     if (_disposed)
     {
         return;
     }
     lock (_syncObject)
     {
         if (_disposed)
         {
             return;
         }
         _disposed = true;
         _context.Dispose();
     }
 }
예제 #2
0
 public void Dispose()
 {
     if (_disposed)
     {
         return;
     }
     lock (_syncObject)
     {
         if (_disposed)
         {
             return;
         }
         _disposed = true;
         _bootstrapper.Dispose();
         _context.Dispose();
         _meterForwarder?.Dispose();
     }
 }