> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# IOperationAuthorizer

> Represents a operation authorizer.

## Definition

**Assembly:** Microsoft.Restier.Core.dll

**Namespace:** Microsoft.Restier.Core.Operation

## Syntax

```csharp theme={"dark"}
Microsoft.Restier.Core.Operation.IOperationAuthorizer
```

## Summary

Represents a operation authorizer.

## Methods

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> AuthorizeAsync <Badge color="orange">Abstract</Badge>

Asynchronously authorizes the Operation.

#### Syntax

```csharp theme={"dark"}
System.Threading.Tasks.Task<bool> AuthorizeAsync(Microsoft.Restier.Core.Operation.OperationContext context, System.Threading.CancellationToken cancellationToken)
```

#### Parameters

| Name                | Type                                                | Description            |
| ------------------- | --------------------------------------------------- | ---------------------- |
| `context`           | `Microsoft.Restier.Core.Operation.OperationContext` | The operation context. |
| `cancellationToken` | `System.Threading.CancellationToken`                | A cancellation token.  |

#### Returns

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