Here are the examples of the csharp api class Microsoft.ApplicationInsights.TelemetryClient.IsEnabled() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
1
1. Example
Project: ApplicationInsights-dotnet
Source File: TelemetryClient.cs
Source File: TelemetryClient.cs
[EditorBrowsable(EditorBrowsableState.Never)] public void Track(ITelemetry telemetry) { // TALK TO YOUR TEAM MATES BEFORE CHANGING THIS. // This method needs to be public so that we can build and ship new telemetry types without having to ship core. // It is hidden from intellisense to prevent customer confusion. if (this.IsEnabled()) { this.Initialize(telemetry); // invokes the Process in the first processor in the chain this.configuration.TelemetryProcessorChain.Process(telemetry); // logs rich payload ETW event for any partners to process it RichPayloadEventSource.Log.Process(telemetry); } }