Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryProcessorChain.Dispose()

Here are the examples of the csharp api class Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryProcessorChain.Dispose() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

1. Example

Project: ApplicationInsights-dotnet
Source File: TelemetrySink.cs
public void Dispose()
        {
            this.isDisposed = true;

            if (this.shouldDisposeChannel)
            {
                this.telemetryChannel?.Dispose();
            }

            this.telemetryChannel = null;

            this.telemetryProcessorChain?.Dispose();
            this.telemetryProcessorChain = null;
        }

2. Example

Project: ApplicationInsights-dotnet
Source File: TelemetryConfiguration.cs
private void Dispose(bool disposing)
        {
            if (!this.isDisposed && disposing)
            {
                this.isDisposed = true;
                Interlocked.CompareExchange(ref active, null, this);

                if (this.telemetryProcessorChain != null)
                {
                    // Not setting this.telemetryProcessorChain to null because calls to the property getter would reinitialize it.
                    this.telemetryProcessorChain.Dispose();
                }

                foreach (TelemetrySink sink in this.telemetrySinks)
                {
                    sink.Dispose();
                    if (!object.ReferenceEquals(sink, this.telemetrySinks.DefaultSink))
                    {
                        this.telemetrySinks.Remove(sink);
                    }
                }
            }
        }

3. Example

Project: ApplicationInsights-dotnet
Source File: SamplingTelemetryProcessorTest.cs
private static void TelemetryTypeSupportsSampling(Func<TelemetryProcessorChain, int> sendActio/n ..... /n //View Source file for more details /n }