TranscriptLoggerMiddleware Class

  • java.lang.Object
    • com.microsoft.bot.builder.TranscriptLoggerMiddleware

Implements

public class TranscriptLoggerMiddleware
implements Middleware

When added, this middleware will log incoming and outgoing activities to a TranscriptStore.

Constructor Summary

Constructor Description
TranscriptLoggerMiddleware(TranscriptLogger withTranscriptLogger)

Initializes a new instance of the class.

Method Summary

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

Records incoming and outgoing activities to the conversation store.

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

TranscriptLoggerMiddleware

public TranscriptLoggerMiddleware(TranscriptLogger withTranscriptLogger)

Initializes a new instance of the class.

Parameters:

withTranscriptLogger - The transcript logger to use.

Method Details

onTurn

public CompletableFuture onTurn(TurnContext context, NextDelegate next)

Records incoming and outgoing activities to the conversation store.

Parameters:

context - The context object for this turn.
next - The delegate to call to continue the bot middleware pipeline.

Returns:

A task that represents the work queued to execute.

Applies to