Microsoft.ApplicationInsights.Extensibility.SdkInternalOperationsMonitor.Exit()

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

4 Examples 7

1. Example

Project: ApplicationInsights-dotnet
Source File: InMemoryTransmitter.cs
internal void Flush(TimeSpan timeout)
        {
            SdkInternalOperationsMonitor.Enter();
            try
            {
                this.DequeueAndSend(timeout);
            }
            finally
            {
                SdkInternalOperationsMonitor.Exit();
            }
        }

2. Example

Project: ApplicationInsights-dotnet
Source File: InMemoryTransmitter.cs
private void Runner()
        {
            SdkInternalOperationsMonitor.Enter();
            try
            {
                using (this.startRunnerEvent = new AutoResetEvent(false))
                {
                    while (this.enabled)
                    {
                        // Pulling all items from the buffer and sending as one transmission.
                        this.DequeueAndSend(timeout: default(TimeSpan)); // when default(TimeSpan) is provided, value is ignored and default timeout of 100 sec is used

                        // Waiting for the flush delay to elapse
                        this.startRunnerEvent.WaitOne(this.sendingInterval);
                    }
                }
            }
            finally
            {
                SdkInternalOperationsMonitor.Exit();
            }
        }

3. Example

Project: ApplicationInsights-dotnet
Source File: TelemetryConfigurationFactory.cs
public virtual void Initialize(TelemetryConfiguration configuration, TelemetryModules modules, strin/n ..... /n //View Source file for more details /n }

4. Example

Project: ApplicationInsights-dotnet
Source File: TransmissionSender.cs
private async Task StartSending(Transmission transmission)
        {
            SdkInternalOperatio/n ..... /n //View Source file for more details /n }