Esempio n. 1
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         _traceManager?.Dispose();
     }
 }
        protected virtual void Dispose(bool disposing)
        {
            // TODO: Dispose the trace listener also.
            if (disposing)
            {
                if (_loadContext != null)
                {
                    _loadContext.Unloading -= LoadContext_Unloading;
                    _loadContext            = null;
                }
                _httpTraceSubscription?.Dispose();
                _diagListenerSubscription?.Dispose();
                _traceManager?.Dispose();
                _traceManager = null;
                _vssTrace?.Dispose();
                _vssTrace = null;
                _trace?.Dispose();
                _trace = null;
                _httpTrace?.Dispose();
                _httpTrace = null;

                _agentShutdownTokenSource?.Dispose();
                _agentShutdownTokenSource = null;

                base.Dispose();
            }
        }
Esempio n. 3
0
 private void Dispose(bool disposing)
 {
     // TODO: Dispose the trace listener also.
     if (disposing)
     {
         _traceManager?.Dispose();
         _traceManager = null;
     }
 }
Esempio n. 4
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_loadContext != null)
         {
             _loadContext.Unloading -= LoadContext_Unloading;
             _loadContext            = null;
         }
         _traceManager?.Dispose();
     }
 }
Esempio n. 5
0
 private void Dispose(bool disposing)
 {
     // TODO: Dispose the trace listener also.
     if (disposing)
     {
         if (_loadContext != null)
         {
             _loadContext.Unloading -= LoadContext_Unloading;
             _loadContext            = null;
         }
         _traceManager?.Dispose();
         _traceManager = null;
     }
 }
Esempio n. 6
0
        private void Dispose(bool disposing)
        {
            // TODO: Dispose the trace listener also.
            if (disposing)
            {
                if (_loadContext != null)
                {
                    _loadContext.Unloading -= LoadContext_Unloading;
                    _loadContext            = null;
                }
                _httpTraceSubscription?.Dispose();
                _diagListenerSubscription?.Dispose();
                _traceManager?.Dispose();
                _traceManager = null;

                base.Dispose();
            }
        }
Esempio n. 7
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_loadContext != null)
         {
             _loadContext.Unloading -= LoadContext_Unloading;
             _loadContext            = null;
         }
         _traceManager?.Dispose();
         try
         {
             Directory.Delete(_tempDirectoryRoot);
         }
         catch (Exception)
         {
             // eat exception on dispose
         }
     }
 }
Esempio n. 8
0
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_loadContext != null)
         {
             _loadContext.Unloading -= LoadContext_Unloading;
             _loadContext            = null;
         }
         _traceManager?.Dispose();
         _secretMasker?.Dispose();
         _term?.Dispose();
         _trace?.Dispose();
         _agentShutdownTokenSource?.Dispose();
         try
         {
             Directory.Delete(_tempDirectoryRoot);
         }
         catch (Exception)
         {
             // eat exception on dispose
         }
     }
 }