Język

DebuggingBotAdapterExtensions.UseDebugger Metoda

Definicja

Włącz protokół Debug Adapter dla działającego adaptera.

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

Parametry

botAdapter
BotAdapter

Umożliwić BotAdapter to.

port
Int32

lewo, by słuchać.

sourceMap
ISourceMap

ISourceMap do użycia (domyślnie będzie SourceMap()).

terminate
Action

Funkcja zakończenia (domyślnie to Environment.Exit().

logger
ILogger

ILogger do użycia (domyślnie to NullLogger).

Zwraca

BotAdapter.

Dotyczy