Lingua

FacebookClientWrapper.RequestThreadControlAsync Metodo

Definizione

Invia l'evento webhook request_thread_control su Facebook.

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)

Parametri

userId
String

L'ID utente del mittente.

message
String

Un messaggio opzionale per il parametro metadati.

cancellationToken
CancellationToken

Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.

Valori restituiti

true se l'operazione ha avuto esito positivo; in caso contrario, false.

Eccezioni

userId è null.

Si applica a