ApplicationInsightsApplicationIdProvider Class

Definition

This ApplicationInsightsApplicationIdProvider will query the Application Insights' Breeze endpoint to lookup an Application Id based on Instrumentation Key. This will cache lookup results to prevent repeat queries. This will rely on the Microsoft.ApplicationInsights.Extensibility.Implementation.ApplicationId.ProfileServiceWrapper and Microsoft.ApplicationInsights.Extensibility.Implementation.ApplicationId.FailedRequestsManager to record failed requests and block additional failing requests.

C#
public sealed class ApplicationInsightsApplicationIdProvider : IDisposable, Microsoft.ApplicationInsights.Extensibility.IApplicationIdProvider
Inheritance
ApplicationInsightsApplicationIdProvider
Implements

Constructors

Properties

ProfileQueryEndpoint

Gets or sets the endpoint that is to be used to get the Application Insights resource's profile (Application Id etc.). Default value is "https://dc.services.visualstudio.com/api/profiles/{0}/appId". If this is overwritten, MUST include the '{0}' for string replacement!.

Methods

Dispose()

Disposes resources.

TryGetApplicationId(String, String)

Retrieves the Application Id corresponding to a given Instrumentation Key.

Applies to

Toode Versioonid
Azure SDK for .NET Latest, Preview