InspectionMiddleware class

InspectionMiddleware for emulator inspection of runtime Activities and BotState.

Extends
InterceptionMiddleware

Remarks

InspectionMiddleware for emulator inspection of runtime Activities and BotState.

Constructors

InspectionMiddleware(InspectionState, UserState, ConversationState, Partial<MicrosoftAppCredentials>)

Create the Inspection middleware for sending trace activities out to an emulator session

Methods

onTurn(TurnContext, () => Promise<void>)

Implement middleware signature

processCommand(TurnContext)

Constructor Details

InspectionMiddleware(InspectionState, UserState, ConversationState, Partial<MicrosoftAppCredentials>)

Create the Inspection middleware for sending trace activities out to an emulator session

new InspectionMiddleware(inspectionState: InspectionState, userState?: UserState, conversationState?: ConversationState, credentials?: Partial<MicrosoftAppCredentials>)

Parameters

inspectionState
InspectionState
userState
UserState
conversationState
ConversationState
credentials
Partial<MicrosoftAppCredentials>

Method Details

onTurn(TurnContext, () => Promise<void>)

Implement middleware signature

function onTurn(turnContext: TurnContext, next: () => Promise<void>)

Parameters

turnContext
TurnContext
next
() => Promise<void>

The next delegate function.

Returns

Promise<void>

processCommand(TurnContext)

function processCommand(turnContext: TurnContext)

Parameters

turnContext
TurnContext

Returns

Promise<any>