Jaa


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.

public sealed class ApplicationInsightsApplicationIdProvider : IDisposable, Microsoft.ApplicationInsights.Extensibility.IApplicationIdProvider
type ApplicationInsightsApplicationIdProvider = class
    interface IApplicationIdProvider
    interface IDisposable
Public NotInheritable Class ApplicationInsightsApplicationIdProvider
Implements IApplicationIdProvider, IDisposable
Inheritance
ApplicationInsightsApplicationIdProvider
Implements

Constructors

ApplicationInsightsApplicationIdProvider()

Initialize a new instance of the ApplicationInsightsApplicationIdProvider class.

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