FacebookClientWrapper.VerifyWebhookAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verifies the verify token from the message. If the token matches the one configured, sends back the challenge.
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
Parameters
- request
- HttpRequest
Represents the incoming side of an HTTP request.
- response
- HttpResponse
Represents the outgoing side of an HTTP request.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
A task that represents the work queued to execute.
Exceptions
request
or response
is null.