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)。