protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _logAnalyticsClient.Dispose();
     }
 }
コード例 #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_logAnalyticsClient != null)
                {
                    _logAnalyticsClient.Dispose();
                    _logAnalyticsClient = null;
                }

                if (_listener != null)
                {
                    _listener.Dispose();
                    _listener = null;
                }
            }
        }
 public void Dispose()
 {
     _logAnalyticsClient.Dispose();
     _listener.Dispose();
 }