DebuggingBotAdapterExtensions.UseDebugger Metódus

Definíció

Engedélyezze a hibakeresési adapterprotokollt a futó adapterhez.

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

Paraméterek

botAdapter
BotAdapter

Az BotAdapter engedélyezendő.

port
Int32

portot a figyeléshez.

sourceMap
ISourceMap

Használandó ISourceMap (alapértelmezés szerint SourceMap()).

terminate
Action

Leállítási függvény (az alapértelmezett érték az Environment.Exit().

logger
ILogger

Használandó ILogger (alapértelmezett értéke NullLogger).

Válaszok

BotAdapter.

A következőre érvényes: