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

# IOperationFilter

> Represents a operation processor.

## Definition

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

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

## Syntax

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

## Summary

Represents a operation processor.

## Methods

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

Asynchronously applies logic after an operation is executed.

#### Syntax

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

#### Parameters

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

#### Returns

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

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

Asynchronously applies logic before a operation is executed.

#### Syntax

```csharp theme={"dark"}
System.Threading.Tasks.Task OnOperationExecutingAsync(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`
A task that represents the asynchronous operation.
