Skip to main content

Definition

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

Syntax

Summary

One McpTasks row. Maps to StoredMcpTask at the store boundary and adds PostgreSqlStoredMcpTask.RowVersion for compare-and-swap.

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 row should be discarded.

Syntax

Property Value

Type: System.Nullable<System.DateTimeOffset?>?

ErrorJson

Gets or sets the JSON-RPC error as JSON.

Syntax

Property Value

Type: string?

ExpiresAt

Gets or sets the work-window end.

Syntax

Property Value

Type: System.Nullable<System.DateTimeOffset?>?

InputRequestsJson

Gets or sets the outstanding input-request map as JSON.

Syntax

Property Value

Type: string?

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>?

ResultJson

Gets or sets the terminal result as JSON.

Syntax

Property Value

Type: string?

RowVersion

Gets or sets the compare-and-swap token. Incremented on every write.

Syntax

Property Value

Type: long

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 row. PostgreSqlStoredMcpTask.RowVersion stays at 1 for inserts; callers bump it on update.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.PostgreSQL.Tasks.PostgreSqlStoredMcpTask A row with the same engine 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 row.

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?