Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.DiagnoisticsEventThrottling.InternalGetEventCounter(int)

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

1 Example 7

1. Example

Project: ApplicationInsights-dotnet
Source File: DiagnoisticsEventThrottling.cs
public bool ThrottleEvent(int eventId, long keywords, out bool justExceededThreshold)
        {
            if (!IsExcludedFromThrottling(keywords))
            {
                var counter = this.InternalGetEventCounter(eventId);

                justExceededThreshold = this.ThrottleAfterCount == counter.Increment() - 1;

                return this.ThrottleAfterCount < counter.ExecCount;
            }

            justExceededThreshold = false;

            return false;
        }