TelemetryInitializerMiddleware Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the TelemetryInitializerMiddleware class.
public TelemetryInitializerMiddleware (Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor, Microsoft.Bot.Builder.TelemetryLoggerMiddleware telemetryLoggerMiddleware, bool logActivityTelemetry = true);
new Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.TelemetryInitializerMiddleware : Microsoft.AspNetCore.Http.IHttpContextAccessor * Microsoft.Bot.Builder.TelemetryLoggerMiddleware * bool -> Microsoft.Bot.Builder.Integration.ApplicationInsights.Core.TelemetryInitializerMiddleware
Public Sub New (httpContextAccessor As IHttpContextAccessor, telemetryLoggerMiddleware As TelemetryLoggerMiddleware, Optional logActivityTelemetry As Boolean = true)
Parameters
- httpContextAccessor
- IHttpContextAccessor
The IHttpContextAccessor to allow access to the HttpContext.
- telemetryLoggerMiddleware
- TelemetryLoggerMiddleware
The TelemetryLoggerMiddleware to allow for logging of activity events.
- logActivityTelemetry
- Boolean
Indicates if the TelemetryLoggerMiddleware should be executed to log activity events.