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

# IOperationExecutor

> Represents a service that executes an operation.

## Definition

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

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

## Syntax

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

## Summary

Represents a service that executes an operation.

## Methods

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

Asynchronously executes an operation.

#### Syntax

```csharp theme={"dark"}
System.Threading.Tasks.Task<System.Linq.IQueryable> ExecuteOperationAsync(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<System.Linq.IQueryable>`
A task that represents the asynchronous
operation whose result is a operation result.
