> ## 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.

# InMemoryAuthenticatedMcpTaskStore

## Definition

**Assembly:** CloudNimble.McpEssentials.Core.dll

**Namespace:** CloudNimble.McpEssentials.Core.Tasks

**Inheritance:** CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase

## Syntax

```csharp theme={null}
CloudNimble.McpEssentials.Core.Tasks.InMemoryAuthenticatedMcpTaskStore
```

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={null}
public InMemoryAuthenticatedMcpTaskStore(System.Func<string> getCurrentUserId)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `getCurrentUserId` | `System.Func<string?>` | - |

### &#x20;.ctor

#### Syntax

```csharp theme={null}
public InMemoryAuthenticatedMcpTaskStore(string userId)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `userId` | `string?` | - |

### &#x20;.ctor

#### Syntax

```csharp theme={null}
public InMemoryAuthenticatedMcpTaskStore(System.Func<System.Security.Claims.ClaimsPrincipal> getPrincipal)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `getPrincipal` | `System.Func<System.Security.Claims.ClaimsPrincipal?>` | - |

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected AuthenticatedMcpTaskStoreBase(System.Func<string> getCurrentUserId)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `getCurrentUserId` | `System.Func<string?>` | - |

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected AuthenticatedMcpTaskStoreBase(string userId)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `userId` | `string?` | - |

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected AuthenticatedMcpTaskStoreBase(System.Func<System.Security.Claims.ClaimsPrincipal> getPrincipal)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `getPrincipal` | `System.Func<System.Security.Claims.ClaimsPrincipal?>` | - |

### &#x20;.ctor Inherited

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

#### Syntax

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

## Properties

### &#x20;AutoSweep Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual bool AutoSweep { get; set; }
```

#### Property Value

Type: `bool`

### &#x20;DefaultPollIntervalMs Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual long DefaultPollIntervalMs { get; set; }
```

#### Property Value

Type: `long`

### &#x20;DefaultTimeToLive Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Nullable<System.TimeSpan> DefaultTimeToLive { get; set; }
```

#### Property Value

Type: `System.Nullable<System.TimeSpan>`

### &#x20;GetCurrentUserId Inherited

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected System.Func<string> GetCurrentUserId { get; }
```

#### Property Value

Type: `System.Func<string?>`

### &#x20;LastSweepTicks Inherited

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected long LastSweepTicks { get; set; }
```

#### Property Value

Type: `long`

### &#x20;ServeAndDrop Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual bool ServeAndDrop { get; set; }
```

#### Property Value

Type: `bool`

### &#x20;SweepInterval Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.TimeSpan SweepInterval { get; set; }
```

#### Property Value

Type: `System.TimeSpan`

## Methods

### &#x20;CreateTaskAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Threading.Tasks.Task<ModelContextProtocol.Extensions.Tasks.McpTaskInfo> CreateTaskAsync(System.Threading.CancellationToken cancellationToken = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task<ModelContextProtocol.Extensions.Tasks.McpTaskInfo>`

### &#x20;CreateTaskAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Threading.Tasks.Task<ModelContextProtocol.Extensions.Tasks.McpTaskInfo> CreateTaskAsync(System.Security.Claims.ClaimsPrincipal user, System.Threading.CancellationToken cancellationToken = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `user` | `System.Security.Claims.ClaimsPrincipal` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task<ModelContextProtocol.Extensions.Tasks.McpTaskInfo>`

### &#x20;CreateTaskCoreAsync Inherited Abstract

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected abstract System.Threading.Tasks.Task<ModelContextProtocol.Extensions.Tasks.McpTaskInfo> CreateTaskCoreAsync(string userId, System.Threading.CancellationToken cancellationToken)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `userId` | `string` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task<ModelContextProtocol.Extensions.Tasks.McpTaskInfo>`

### &#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;GetHashCode Inherited Virtual

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

#### Syntax

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

#### Returns

Type: `int`

### &#x20;GetTaskAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Threading.Tasks.Task<ModelContextProtocol.Extensions.Tasks.McpTaskInfo> GetTaskAsync(string taskId, System.Threading.CancellationToken cancellationToken = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task<ModelContextProtocol.Extensions.Tasks.McpTaskInfo?>`

### &#x20;GetTaskAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Threading.Tasks.Task<ModelContextProtocol.Extensions.Tasks.McpTaskInfo> GetTaskAsync(string taskId, System.Security.Claims.ClaimsPrincipal user, System.Threading.CancellationToken cancellationToken = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `user` | `System.Security.Claims.ClaimsPrincipal` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task<ModelContextProtocol.Extensions.Tasks.McpTaskInfo?>`

### &#x20;GetTaskCoreAsync Inherited Abstract

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected abstract System.Threading.Tasks.Task<ModelContextProtocol.Extensions.Tasks.McpTaskInfo> GetTaskCoreAsync(string taskId, string userId, System.Threading.CancellationToken cancellationToken)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `userId` | `string` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task<ModelContextProtocol.Extensions.Tasks.McpTaskInfo?>`

### &#x20;GetType Inherited

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

#### Syntax

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

#### Returns

Type: `System.Type`

### &#x20;GetUserId Inherited

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public static string GetUserId(System.Security.Claims.ClaimsPrincipal principal)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `principal` | `System.Security.Claims.ClaimsPrincipal?` | - |

#### Returns

Type: `string?`

### &#x20;GetUtcNow Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected virtual System.DateTimeOffset GetUtcNow()
```

#### Returns

Type: `System.DateTimeOffset`

### &#x20;IsOwnedBy Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected virtual bool IsOwnedBy(string ownerUserId, string currentUserId)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `ownerUserId` | `string?` | - |
| `currentUserId` | `string?` | - |

#### Returns

Type: `bool`

### &#x20;MemberwiseClone Inherited

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

#### Syntax

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

#### Returns

Type: `object`

### &#x20;NormalizeTimeToLive Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected virtual System.Nullable<System.TimeSpan> NormalizeTimeToLive(System.Nullable<System.TimeSpan> timeToLive)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `timeToLive` | `System.Nullable<System.TimeSpan>` | - |

#### Returns

Type: `System.Nullable<System.TimeSpan>`

### &#x20;OnInputResponseReceived Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected virtual void OnInputResponseReceived(string taskId, string requestId, ModelContextProtocol.Protocol.InputResponse response)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `requestId` | `string` | - |
| `response` | `ModelContextProtocol.Protocol.InputResponse` | - |

### &#x20;PulseSweepAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected virtual System.Threading.Tasks.Task PulseSweepAsync(System.DateTimeOffset now, System.Threading.CancellationToken cancellationToken)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `now` | `System.DateTimeOffset` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task`

### &#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;RequireUserId Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected virtual string RequireUserId()
```

#### Returns

Type: `string`

### &#x20;RequireUserId Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected virtual string RequireUserId(System.Security.Claims.ClaimsPrincipal user)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `user` | `System.Security.Claims.ClaimsPrincipal` | - |

#### Returns

Type: `string`

### &#x20;ResolveInputRequestsAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Threading.Tasks.Task ResolveInputRequestsAsync(string taskId, System.Collections.Generic.IDictionary<string, ModelContextProtocol.Protocol.InputResponse> inputResponses, System.Threading.CancellationToken cancellationToken = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `inputResponses` | `System.Collections.Generic.IDictionary<string, ModelContextProtocol.Protocol.InputResponse>` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task`

### &#x20;ResolveInputRequestsAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Threading.Tasks.Task ResolveInputRequestsAsync(string taskId, System.Collections.Generic.IDictionary<string, ModelContextProtocol.Protocol.InputResponse> inputResponses, System.Security.Claims.ClaimsPrincipal user, System.Threading.CancellationToken cancellationToken = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `inputResponses` | `System.Collections.Generic.IDictionary<string, ModelContextProtocol.Protocol.InputResponse>` | - |
| `user` | `System.Security.Claims.ClaimsPrincipal` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task`

### &#x20;ResolveInputRequestsCoreAsync Inherited Abstract

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected abstract System.Threading.Tasks.Task ResolveInputRequestsCoreAsync(string taskId, System.Collections.Generic.IDictionary<string, ModelContextProtocol.Protocol.InputResponse> inputResponses, string userId, System.Threading.CancellationToken cancellationToken)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `inputResponses` | `System.Collections.Generic.IDictionary<string, ModelContextProtocol.Protocol.InputResponse>` | - |
| `userId` | `string` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task`

### &#x20;SetCancelledAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Threading.Tasks.Task<bool> SetCancelledAsync(string taskId, System.Threading.CancellationToken cancellationToken = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task<bool>`

### &#x20;SetCancelledAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Threading.Tasks.Task<bool> SetCancelledAsync(string taskId, System.Security.Claims.ClaimsPrincipal user, System.Threading.CancellationToken cancellationToken = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `user` | `System.Security.Claims.ClaimsPrincipal` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task<bool>`

### &#x20;SetCancelledCoreAsync Inherited Abstract

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected abstract System.Threading.Tasks.Task<bool> SetCancelledCoreAsync(string taskId, string userId, System.Threading.CancellationToken cancellationToken)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `userId` | `string` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task<bool>`

### &#x20;SetCompletedAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Threading.Tasks.Task SetCompletedAsync(string taskId, System.Text.Json.JsonElement result, System.Threading.CancellationToken cancellationToken = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `result` | `System.Text.Json.JsonElement` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task`

### &#x20;SetCompletedCoreAsync Inherited Abstract

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected abstract System.Threading.Tasks.Task SetCompletedCoreAsync(string taskId, System.Text.Json.JsonElement result, System.Threading.CancellationToken cancellationToken)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `result` | `System.Text.Json.JsonElement` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task`

### &#x20;SetFailedAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Threading.Tasks.Task SetFailedAsync(string taskId, System.Text.Json.JsonElement error, System.Threading.CancellationToken cancellationToken = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `error` | `System.Text.Json.JsonElement` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task`

### &#x20;SetFailedCoreAsync Inherited Abstract

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected abstract System.Threading.Tasks.Task SetFailedCoreAsync(string taskId, System.Text.Json.JsonElement error, System.Threading.CancellationToken cancellationToken)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `error` | `System.Text.Json.JsonElement` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task`

### &#x20;SetInputRequestsAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Threading.Tasks.Task SetInputRequestsAsync(string taskId, System.Collections.Generic.IDictionary<string, ModelContextProtocol.Protocol.InputRequest> inputRequests, System.Threading.CancellationToken cancellationToken = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `inputRequests` | `System.Collections.Generic.IDictionary<string, ModelContextProtocol.Protocol.InputRequest>` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task`

### &#x20;SetInputRequestsCoreAsync Inherited Abstract

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected abstract System.Threading.Tasks.Task SetInputRequestsCoreAsync(string taskId, System.Collections.Generic.IDictionary<string, ModelContextProtocol.Protocol.InputRequest> inputRequests, System.Threading.CancellationToken cancellationToken)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `taskId` | `string` | - |
| `inputRequests` | `System.Collections.Generic.IDictionary<string, ModelContextProtocol.Protocol.InputRequest>` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task`

### &#x20;ShouldDiscard Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected virtual bool ShouldDiscard(CloudNimble.McpEssentials.Core.Tasks.StoredMcpTask task, System.DateTimeOffset now)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `task` | `CloudNimble.McpEssentials.Core.Tasks.StoredMcpTask` | - |
| `now` | `System.DateTimeOffset` | - |

#### Returns

Type: `bool`

### &#x20;SweepExpiredAsync Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Threading.Tasks.Task SweepExpiredAsync(System.Threading.CancellationToken cancellationToken = null)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task`

### &#x20;SweepExpiredCoreAsync Inherited Abstract

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected abstract System.Threading.Tasks.Task SweepExpiredCoreAsync(System.DateTimeOffset now, System.Threading.CancellationToken cancellationToken)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `now` | `System.DateTimeOffset` | - |
| `cancellationToken` | `System.Threading.CancellationToken` | - |

#### Returns

Type: `System.Threading.Tasks.Task`

### &#x20;ToString Inherited Virtual

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

#### Syntax

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

#### Returns

Type: `string?`

### &#x20;TryClaimSweep Inherited Virtual

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
protected virtual bool TryClaimSweep(System.DateTimeOffset now)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `now` | `System.DateTimeOffset` | - |

#### Returns

Type: `bool`

## Events

### &#x20;InputResponseReceived Inherited

> [!NOTE]
>
> Inherited from `CloudNimble.McpEssentials.Core.Tasks.AuthenticatedMcpTaskStoreBase`

#### Syntax

```csharp theme={null}
public virtual System.Action<ModelContextProtocol.Extensions.Tasks.InputResponseReceivedEventArgs> InputResponseReceived
```

## Related APIs

* CloudNimble.McpEssentials.Core.Tasks.IPerUserMcpTaskStore
* ModelContextProtocol.Extensions.Tasks.IMcpTaskStore


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