DebuggingBotAdapterExtensions.UseDebugger 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为运行中的适配器启用调试适配器协议。
public static Microsoft.Bot.Builder.BotAdapter UseDebugger(this Microsoft.Bot.Builder.BotAdapter botAdapter, int port, Microsoft.Bot.Builder.Dialogs.Debugging.ISourceMap sourceMap = default, Action terminate = default, Microsoft.Extensions.Logging.ILogger logger = default);
static member UseDebugger : Microsoft.Bot.Builder.BotAdapter * int * Microsoft.Bot.Builder.Dialogs.Debugging.ISourceMap * Action * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.BotAdapter
<Extension()>
Public Function UseDebugger (botAdapter As BotAdapter, port As Integer, Optional sourceMap As ISourceMap = Nothing, Optional terminate As Action = Nothing, Optional logger As ILogger = Nothing) As BotAdapter
参数
- botAdapter
- BotAdapter
BotAdapter为了实现。
- port
- Int32
左舷可以听。
- sourceMap
- ISourceMap
ISourceMap 用于使用(默认为 SourceMap())。
- terminate
- Action
终止函数(默认为 Environment.Exit()。
- logger
- ILogger
ILogger 可以使用(默认是 NullLogger)。