TestAdapter Constructors

Definition

Overloads

TestAdapter(ConversationReference, Boolean)

Initializes a new instance of the TestAdapter class.

TestAdapter(String, Boolean)

Initializes a new instance of the TestAdapter class.

TestAdapter(ConversationReference, Boolean)

Initializes a new instance of the TestAdapter class.

public TestAdapter (Microsoft.Bot.Schema.ConversationReference conversation = default, bool sendTraceActivity = false);
new Microsoft.Bot.Builder.Adapters.TestAdapter : Microsoft.Bot.Schema.ConversationReference * bool -> Microsoft.Bot.Builder.Adapters.TestAdapter
Public Sub New (Optional conversation As ConversationReference = Nothing, Optional sendTraceActivity As Boolean = false)

Parameters

conversation
ConversationReference

A reference to the conversation to begin the adapter state with.

sendTraceActivity
Boolean

Indicates whether the adapter should add to its ActiveQueue any trace activities generated by the bot.

Applies to

TestAdapter(String, Boolean)

Initializes a new instance of the TestAdapter class.

public TestAdapter (string channelId, bool sendTraceActivity = false);
new Microsoft.Bot.Builder.Adapters.TestAdapter : string * bool -> Microsoft.Bot.Builder.Adapters.TestAdapter
Public Sub New (channelId As String, Optional sendTraceActivity As Boolean = false)

Parameters

channelId
String

The target Channels for the test the will be passed to the bot.

sendTraceActivity
Boolean

Indicates whether the adapter should add to its ActiveQueue any trace activities generated by the bot.

Applies to