Udostępnij przez


SlackClientWrapper Klasa

Definicja

Przestroga

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
Dziedziczenie
SlackClientWrapper
Atrybuty

Konstruktory

SlackClientWrapper(SlackClientWrapperOptions)
Przestarzałe.

Inicjuje nowe wystąpienie klasy SlackClientWrapper. Tworzy klienta usługi Slack, podając token dostępu.

Właściwości

Identity
Przestarzałe.

Pobiera tożsamość użytkownika.

Options
Przestarzałe.

Pobiera klasę SlackClientWrapperOptions.

Metody

DeleteMessageAsync(String, DateTime, CancellationToken)
Przestarzałe.

Zawija metodę DeleteMessageAsync interfejsu API usługi Slack.

GetBotUserIdentity(Activity)
Przestarzałe.

Pobierz identyfikator użytkownika bota skojarzony z zespołem, na którym pochodzi działanie przychodzące. Jest on używany wewnętrznie przez element SlackMessageTypeMiddleware do identyfikowania direct_mention i wzmianek o zdarzeniach. W trybie pojedynczego zespołu spowoduje to ściągnięcie informacji z interfejsu API usługi Slack podczas uruchamiania. W trybie obejmującym wiele zespołów użyje getBotUserByTeam metody przekazanej do konstruktora w celu ściągnięcia informacji ze źródła zdefiniowanego przez dewelopera.

LoginWithSlackAsync(CancellationToken)
Przestarzałe.

Zarządza logowaniem do usługi Slack przy użyciu podanych poświadczeń.

PostMessageAsync(NewSlackMessage, CancellationToken)
Przestarzałe.

Publikuje komunikat w usłudze Slack.

TestAuthAsync(CancellationToken)
Przestarzałe.

Opakowuje metodę TestAuthAsync interfejsu API usługi Slack.

UpdateAsync(String, String, String, String, String, Boolean, Attachment[], Boolean, CancellationToken)
Przestarzałe.

Zawija metodę UpdateAsync interfejsu API usługi Slack.

VerifySignature(HttpRequest, String)
Przestarzałe.

Sprawdza poprawność lokalnego wpisu tajnego względem klucza uzyskanego z nagłówka żądania.

Dotyczy