Idioma

SlackClientWrapper Classe

Definição

Atenção

The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.

[System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")]
public class SlackClientWrapper
[<System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")>]
type SlackClientWrapper = class
Public Class SlackClientWrapper
Herança
SlackClientWrapper
Atributos

Construtores

Name Descrição
SlackClientWrapper(SlackClientWrapperOptions)
Obsoleto.

Inicializa uma nova instância da SlackClientWrapper classe. Cria um cliente Slack fornecendo o token de acesso.

Propriedades

Name Descrição
Identity
Obsoleto.

Obtém a identidade do utilizador.

Options
Obsoleto.

Obtém o SlackClientWrapperOptions.

Métodos

Name Descrição
DeleteMessageAsync(String, DateTime, CancellationToken)
Obsoleto.

Envolve o método DeleteMessageAsync da API do Slack.

GetBotUserIdentity(Activity)
Obsoleto.

Obtenha o ID de utilizador do bot associado à equipa onde uma atividade recebida se originou. Isto é usado internamente pelo SlackMessageTypeMiddleware para identificar direct_mention e mencionar eventos. No modo de equipa única, isto irá recolher a informação da API do Slack no lançamento. No modo multi-equipa, isto utilizará o getBotUserByTeam método passado ao construtor para extrair a informação de uma fonte definida pelo programador.

LoginWithSlackAsync(CancellationToken)
Obsoleto.

Gerir o login no Slack com as credenciais fornecidas.

PostMessageAsync(NewSlackMessage, CancellationToken)
Obsoleto.

Publica uma mensagem no Slack.

TestAuthAsync(CancellationToken)
Obsoleto.

Envolve o método TestAuthAsync da API do Slack.

UpdateAsync(String, String, String, String, String, Boolean, Attachment[], Boolean, CancellationToken)
Obsoleto.

Envolve o método UpdateAsync da API do Slack.

VerifySignature(HttpRequest, String)
Obsoleto.

Valida o segredo local contra o obtido do cabeçalho do pedido.

Aplica-se a