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

# InProcessODataExecutor

> Executes OData requests by invoking the same ASP.NET Core pipeline that hosts MCP.

## Definition

**Assembly:** Microsoft.OData.Mcp.AspNetCore.dll

**Namespace:** Microsoft.OData.Mcp.AspNetCore.Execution

**Inheritance:** System.Object

## Syntax

```csharp theme={null}
Microsoft.OData.Mcp.AspNetCore.Execution.InProcessODataExecutor
```

## Summary

Executes OData requests by invoking the same ASP.NET Core pipeline that hosts MCP.

## Constructors

### &#x20;.ctor

Initializes a new instance of the [InProcessODataExecutor](https://ai.easyaf.dev/odata-mcp/api-reference/Microsoft/OData/Mcp/AspNetCore/Execution/InProcessODataExecutor.md) class.

#### Syntax

```csharp theme={null}
public InProcessODataExecutor(Microsoft.OData.Mcp.AspNetCore.Hosting.ODataMcpPipeline pipeline, Microsoft.OData.Mcp.AspNetCore.Hosting.McpHttpContextAccessor httpContextAccessor, Microsoft.Extensions.DependencyInjection.IServiceScopeFactory scopeFactory, string routePrefix)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `pipeline` | `Microsoft.OData.Mcp.AspNetCore.Hosting.ODataMcpPipeline` | The captured application pipeline. |
| `httpContextAccessor` | `Microsoft.OData.Mcp.AspNetCore.Hosting.McpHttpContextAccessor` | The wrapping accessor that can Start/End the inner context. |
| `scopeFactory` | `Microsoft.Extensions.DependencyInjection.IServiceScopeFactory` | Creates a request scope for the inner OData call. |
| `routePrefix` | `string` | The OData route prefix, for example `odata`. |

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public Object()
```

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ExecuteAsync

#### Syntax

```csharp theme={null}
public System.Threading.Tasks.Task<Microsoft.OData.Mcp.Core.Execution.ODataExecuteResult> ExecuteAsync(Microsoft.OData.Mcp.Core.Execution.ODataExecuteRequest request, System.Threading.CancellationToken cancellationToken)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `request` | `Microsoft.OData.Mcp.Core.Execution.ODataExecuteRequest` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task<Microsoft.OData.Mcp.Core.Execution.ODataExecuteResult>`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual string ToString()
```

#### Returns

Type: `string?`

## Related APIs

* Microsoft.OData.Mcp.Core.Execution.IODataExecutor


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.