Jaa


SlackAdapter Constructors

Definition

Overloads

SlackAdapter(SlackClientWrapper, SlackAdapterOptions, ILogger)

Initializes a new instance of the SlackAdapter class. Creates a Slack adapter.

SlackAdapter(IConfiguration, SlackAdapterOptions, ILogger)

Initializes a new instance of the SlackAdapter class using configuration settings.

SlackAdapter(SlackClientWrapper, SlackAdapterOptions, ILogger)

Initializes a new instance of the SlackAdapter class. Creates a Slack adapter.

public SlackAdapter (Microsoft.Bot.Builder.Adapters.Slack.SlackClientWrapper slackClient, Microsoft.Bot.Builder.Adapters.Slack.SlackAdapterOptions adapterOptions, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Adapters.Slack.SlackAdapter : Microsoft.Bot.Builder.Adapters.Slack.SlackClientWrapper * Microsoft.Bot.Builder.Adapters.Slack.SlackAdapterOptions * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Adapters.Slack.SlackAdapter
Public Sub New (slackClient As SlackClientWrapper, adapterOptions As SlackAdapterOptions, Optional logger As ILogger = Nothing)

Parameters

slackClient
SlackClientWrapper

The SlackClientWrapper used to connect to the Slack API.

adapterOptions
SlackAdapterOptions

The adapter options to be used when connecting to the Slack API.

logger
ILogger

The ILogger implementation this adapter should use.

Applies to

SlackAdapter(IConfiguration, SlackAdapterOptions, ILogger)

Initializes a new instance of the SlackAdapter class using configuration settings.

public SlackAdapter (Microsoft.Extensions.Configuration.IConfiguration configuration, Microsoft.Bot.Builder.Adapters.Slack.SlackAdapterOptions options = default, Microsoft.Extensions.Logging.ILogger logger = default);
new Microsoft.Bot.Builder.Adapters.Slack.SlackAdapter : Microsoft.Extensions.Configuration.IConfiguration * Microsoft.Bot.Builder.Adapters.Slack.SlackAdapterOptions * Microsoft.Extensions.Logging.ILogger -> Microsoft.Bot.Builder.Adapters.Slack.SlackAdapter
Public Sub New (configuration As IConfiguration, Optional options As SlackAdapterOptions = Nothing, Optional logger As ILogger = Nothing)

Parameters

configuration
IConfiguration

An IConfiguration instance.

options
SlackAdapterOptions

An instance of SlackAdapterOptions.

logger
ILogger

The ILogger implementation this adapter should use.

Remarks

The configuration keys are: SlackVerificationToken: A token for validating the origin of incoming webhooks. SlackBotToken: A token for a bot to work on a single workspace. SlackClientSigningSecret: The token used to validate that incoming webhooks are originated from Slack.

Applies to