IAuthenticationFilter.AuthenticateAsync Method
Authenticates the request.
Namespace: System.Web.Http.Filters
Assembly: System.Web.Http (in System.Web.Http.dll)
'Declaration
Function AuthenticateAsync ( _
context As HttpAuthenticationContext, _
cancellationToken As CancellationToken _
) As Task
'Usage
Dim instance As IAuthenticationFilter
Dim context As HttpAuthenticationContext
Dim cancellationToken As CancellationToken
Dim returnValue As Task
returnValue = instance.AuthenticateAsync(context, _
cancellationToken)
Task AuthenticateAsync(
HttpAuthenticationContext context,
CancellationToken cancellationToken
)
Task^ AuthenticateAsync(
HttpAuthenticationContext^ context,
CancellationToken cancellationToken
)
abstract AuthenticateAsync :
context:HttpAuthenticationContext *
cancellationToken:CancellationToken -> Task
function AuthenticateAsync(
context : HttpAuthenticationContext,
cancellationToken : CancellationToken
) : Task
- context
Type: System.Web.Http.Filters.HttpAuthenticationContext
The authentication context.
- cancellationToken
Type: System.Threading.CancellationToken
The token to monitor for cancellation requests.
Type: System.Threading.Tasks.Task
A Task that will perform authentication.