TelemetryInitializerMiddleware Class

  • java.lang.Object
    • com.microsoft.bot.applicationinsights.core.TelemetryInitializerMiddleware

Implements

public class TelemetryInitializerMiddleware
implements Middleware

Middleware for storing incoming activity on the HttpContext.

Constructor Summary

Constructor Description
TelemetryInitializerMiddleware(TelemetryLoggerMiddleware withTelemetryLoggerMiddleware, Boolean withLogActivityTelemetry)

Initializes a new instance of the TelemetryInitializerMiddleware.

Method Summary

Modifier and Type Method and Description
java.util.concurrent.CompletableFuture<java.lang.Void> onTurn(TurnContext context, NextDelegate next)

Stores the incoming activity as JSON in the items collection on the HttpContext.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

TelemetryInitializerMiddleware

public TelemetryInitializerMiddleware(TelemetryLoggerMiddleware withTelemetryLoggerMiddleware, Boolean withLogActivityTelemetry)

Initializes a new instance of the TelemetryInitializerMiddleware.

Parameters:

withTelemetryLoggerMiddleware - The TelemetryLoggerMiddleware to use.
withLogActivityTelemetry - Boolean determining if you want to log telemetry activity

Method Details

onTurn

public CompletableFuture onTurn(TurnContext context, NextDelegate next)

Stores the incoming activity as JSON in the items collection on the HttpContext.

Parameters:

context - The incoming TurnContext
next - Delegate to run next on

Returns:

Returns a CompletableFuture with Void value

Applies to