InspectionMiddleware 构造函数

定义

初始化 InspectionMiddleware 类的新实例。

public InspectionMiddleware (Microsoft.Bot.Builder.InspectionState inspectionState, Microsoft.Bot.Builder.UserState userState = default, Microsoft.Bot.Builder.ConversationState conversationState = default, Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials credentials = default, Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.InspectionMiddleware> logger = default);
new Microsoft.Bot.Builder.InspectionMiddleware : Microsoft.Bot.Builder.InspectionState * Microsoft.Bot.Builder.UserState * Microsoft.Bot.Builder.ConversationState * Microsoft.Bot.Connector.Authentication.MicrosoftAppCredentials * Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Builder.InspectionMiddleware> -> Microsoft.Bot.Builder.InspectionMiddleware
Public Sub New (inspectionState As InspectionState, Optional userState As UserState = Nothing, Optional conversationState As ConversationState = Nothing, Optional credentials As MicrosoftAppCredentials = Nothing, Optional logger As ILogger(Of InspectionMiddleware) = Nothing)

参数

inspectionState
InspectionState

检查状态的状态管理对象。

userState
UserState

用户状态的状态管理对象。

conversationState
ConversationState

会话状态的状态管理对象。

credentials
MicrosoftAppCredentials

身份验证凭据。

logger
ILogger<InspectionMiddleware>

记录器。

适用于