Udostępnij przez


FacebookClientWrapper.RequestThreadControlAsync Metoda

Definicja

Wysyła zdarzenie elementu webhook request_thread_control do Facebooka.

public virtual System.Threading.Tasks.Task<bool> RequestThreadControlAsync(string userId, string message, System.Threading.CancellationToken cancellationToken);
abstract member RequestThreadControlAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.RequestThreadControlAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function RequestThreadControlAsync (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