Udostępnij przez


FacebookClientWrapper.TakeThreadControlAsync Metoda

Definicja

Wysyła zdarzenie elementu webhook take_thread_control do Facebooka.

public virtual System.Threading.Tasks.Task<bool> TakeThreadControlAsync(string userId, string message, System.Threading.CancellationToken cancellationToken);
abstract member TakeThreadControlAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.TakeThreadControlAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function TakeThreadControlAsync (userId As String, message As String, cancellationToken As CancellationToken) As Task(Of Boolean)

Parametry

userId
String

Identyfikator użytkownika nadawcy.

message
String

Opcjonalny komunikat dla parametru metadanych.

cancellationToken
CancellationToken

Token odwołania, używany przez inne obiekty lub wątki do otrzymania powiadomienia o anulowaniu.

Zwraca

true jeśli operacja zakończyła się pomyślnie; w przeciwnym razie , false.

Wyjątki

userId ma wartość null.

Dotyczy