Lingua

SlackClientWrapper Classe

Definizione

Attenzione

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
Ereditarietà
SlackClientWrapper
Attributi

Costruttori

Nome Descrizione
SlackClientWrapper(SlackClientWrapperOptions)
Obsoleti.

Inizializza una nuova istanza della classe SlackClientWrapper. Crea un client Slack fornendo il token di accesso.

Proprietà

Nome Descrizione
Identity
Obsoleti.

Ottiene l'identità dell'utente.

Options
Obsoleti.

Ottiene l'oggetto SlackClientWrapperOptions.

Metodi

Nome Descrizione
DeleteMessageAsync(String, DateTime, CancellationToken)
Obsoleti.

Racchiude il metodo DeleteMessageAsync dell'API Slack.

GetBotUserIdentity(Activity)
Obsoleti.

Ottieni l'ID utente del bot associato al team su cui è partita un'attività in arrivo. Questo viene utilizzato internamente dal SlackMessageTypeMiddleware per identificare direct_mention e menzionare eventi. In modalità single-team, questo estrarrà le informazioni dall'API Slack al lancio. In modalità multi-team, questo utilizzerà il getBotUserByTeam metodo passato al costruttore per estrarre le informazioni da una fonte definita dallo sviluppatore.

LoginWithSlackAsync(CancellationToken)
Obsoleti.

Gestisce il login su Slack con le credenziali fornite.

PostMessageAsync(NewSlackMessage, CancellationToken)
Obsoleti.

Pubblica un messaggio su Slack.

TestAuthAsync(CancellationToken)
Obsoleti.

Incapsula il metodo TestAuthAsync dell'API Slack.

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

Racchiude il metodo UpdateAsync dell'API Slack.

VerifySignature(HttpRequest, String)
Obsoleti.

Valida il segreto locale rispetto a quello ottenuto dall'intestazione della richiesta.

Si applica a