FacebookClientWrapper.VerifyWebhookAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
验证消息中的验证令牌。 如果标记与配置的标记匹配,则返回挑战。
public virtual System.Threading.Tasks.Task VerifyWebhookAsync(Microsoft.AspNetCore.Http.HttpRequest request, Microsoft.AspNetCore.Http.HttpResponse response, System.Threading.CancellationToken cancellationToken);
abstract member VerifyWebhookAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.HttpResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.VerifyWebhookAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.HttpResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function VerifyWebhookAsync (request As HttpRequest, response As HttpResponse, cancellationToken As CancellationToken) As Task
参数
- request
- HttpRequest
表示HTTP请求的入站端。
- response
- HttpResponse
表示HTTP请求的外发出端。
- cancellationToken
- CancellationToken
其他对象或线程可以使用的取消令牌来接收取消通知。
返回
表示要执行的工作的任务。
例外
request 或 response 为 null。