TestAdapter Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- sendTraceActivity
- Boolean
Indicates whether the adapter should add to its ActiveQueue any trace activities generated by the bot.