Language

TestAdapter Constructors

Definition

Overloads

Name Description
TestAdapter(ConversationReference, Boolean, ILogger, IUserTokenClient)

Initializes a new instance of the TestAdapter class.

TestAdapter(String, Boolean, ILogger, IUserTokenClient)

Initializes a new instance of the TestAdapter class.

TestAdapter(ConversationReference, Boolean, ILogger, IUserTokenClient)

Initializes a new instance of the TestAdapter class.

public TestAdapter(Microsoft.Agents.Core.Models.ConversationReference conversation = default, bool sendTraceActivity = false, Microsoft.Extensions.Logging.ILogger logger = default, Microsoft.Agents.Connector.IUserTokenClient tokenClient = default);
new Microsoft.Agents.Builder.Testing.TestAdapter : Microsoft.Agents.Core.Models.ConversationReference * bool * Microsoft.Extensions.Logging.ILogger * Microsoft.Agents.Connector.IUserTokenClient -> Microsoft.Agents.Builder.Testing.TestAdapter
Public Sub New (Optional conversation As ConversationReference = Nothing, Optional sendTraceActivity As Boolean = false, Optional logger As ILogger = Nothing, Optional tokenClient As IUserTokenClient = Nothing)

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<param name="logger">Logger for this class</param> any trace activities generated by the bot.

logger
ILogger
tokenClient
IUserTokenClient

Applies to

TestAdapter(String, Boolean, ILogger, IUserTokenClient)

Initializes a new instance of the TestAdapter class.

public TestAdapter(string channelId, bool sendTraceActivity = false, Microsoft.Extensions.Logging.ILogger logger = default, Microsoft.Agents.Connector.IUserTokenClient tokenClient = default);
new Microsoft.Agents.Builder.Testing.TestAdapter : string * bool * Microsoft.Extensions.Logging.ILogger * Microsoft.Agents.Connector.IUserTokenClient -> Microsoft.Agents.Builder.Testing.TestAdapter
Public Sub New (channelId As String, Optional sendTraceActivity As Boolean = false, Optional logger As ILogger = Nothing, Optional tokenClient As IUserTokenClient = Nothing)

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<param name="logger">Logger for this class</param> any trace activities generated by the bot.

logger
ILogger
tokenClient
IUserTokenClient

Applies to