コード例 #1
0
        public void Dispose()
        {
            this.FilingClient?.Dispose();
            this.FilingClient = null;

            ITelemetryChannel channel = ServiceProviderFactory.ServiceProvider.GetService<ITelemetryChannel>();
            channel?.Flush();
            channel?.Dispose();
        }
コード例 #2
0
 private void DisposeChannel()
 {
     try
     {
         appInsightsChannel.Dispose();
     }
     catch (InvalidOperationException)
     {
     }
     catch (FileNotFoundException)
     {
     }
 }
コード例 #3
0
        private void Dispose(bool disposing)
        {
            if (disposing)
            {
                Interlocked.CompareExchange(ref active, null, this);

                ITelemetryChannel telemetryChannel = this.TelemetryChannel;
                if (telemetryChannel != null)
                {
                    telemetryChannel.Dispose();
                }
            }
        }