Skip to main content

Definition

Assembly: CloudNimble.McpEssentials.Redis.dll Namespace: CloudNimble.McpEssentials.Redis.Tasks Inheritance: System.Object

Syntax

Summary

JSON shape of a Redis task key. Maps to StoredMcpTask at the store boundary.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

CreatedAt

Gets or sets when the task was created, UTC.

Syntax

Property Value

Type: System.DateTimeOffset

DiscardAfter

Gets or sets when the key should be discarded.

Syntax

Property Value

Type: System.Nullable<System.DateTimeOffset>

Error

Gets or sets the JSON-RPC error payload.

Syntax

Property Value

Type: System.Nullable<System.Text.Json.JsonElement>

ExpiresAt

Gets or sets the work-window end.

Syntax

Property Value

Type: System.Nullable<System.DateTimeOffset>

InputRequests

Gets or sets outstanding input requests.

Syntax

Property Value

Type: System.Collections.Generic.Dictionary<string, ModelContextProtocol.Protocol.InputRequest>?

LastUpdatedAt

Gets or sets when the task last changed, UTC.

Syntax

Property Value

Type: System.DateTimeOffset

OwnerUserId

Gets or sets the user recorded when the task was created.

Syntax

Property Value

Type: string

PollIntervalMs

Gets or sets the client poll interval in milliseconds.

Syntax

Property Value

Type: System.Nullable<long>

Result

Gets or sets the terminal result payload.

Syntax

Property Value

Type: System.Nullable<System.Text.Json.JsonElement>

Status

Gets or sets the protocol status (enum name).

Syntax

Property Value

Type: ModelContextProtocol.Extensions.Tasks.McpTaskStatus

StatusMessage

Gets or sets an optional status message.

Syntax

Property Value

Type: string?

TaskId

Gets or sets the opaque task identifier.

Syntax

Property Value

Type: string

TimeToLive

Gets or sets the time-to-live from create, or null for unlimited.

Syntax

Property Value

Type: System.Nullable<System.TimeSpan>

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

From

Copies stored into a Redis JSON record.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Redis.Tasks.RedisStoredMcpTask A JSON record with the same fields.

Exceptions

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToStored Virtual

Builds a StoredMcpTask from this record.

Syntax

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.StoredMcpTask A snapshot the Core Try* methods can mutate.

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?