Skip to main content

Definition

Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core.Operation

Syntax

Microsoft.Restier.Core.Operation.IOperationAuthorizer

Summary

Represents a operation authorizer.

Methods

AuthorizeAsync Abstract

Asynchronously authorizes the Operation.

Syntax

System.Threading.Tasks.Task<bool> AuthorizeAsync(Microsoft.Restier.Core.Operation.OperationContext context, System.Threading.CancellationToken cancellationToken)

Parameters

NameTypeDescription
contextMicrosoft.Restier.Core.Operation.OperationContextThe operation context.
cancellationTokenSystem.Threading.CancellationTokenA cancellation token.

Returns

Type: System.Threading.Tasks.Task<bool> A task that represents the asynchronous operation.