Definition
Assembly: CloudNimble.McpEssentials.Cosmos.dll Namespace: CloudNimble.McpEssentials.Cosmos.Tasks Inheritance: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBaseSyntax
Summary
An IMcpTaskStorePlus that persists snapshots as Cosmos documents partitioned by owner, with a task-id index for server-side complete and native document TTL.Remarks
Register as a singleton. The host owns CosmosClient. Native TTL is the drain; McpTaskStoreBase.AutoSweep defaults tofalse. Optional IMcpTaskInputSignalBus fans
elicitation wake-ups across nodes.
Constructors
.ctor
Initializes a new instance of the CosmosMcpTaskStore class.Syntax
Parameters
Exceptions
.ctor
Initializes a new instance that always uses userId.Syntax
Parameters
Exceptions
.ctor
Initializes a new instance that resolves the user from a ClaimsPrincipal.Syntax
Parameters
Exceptions
.ctor
Initializes a new instance with deferred factories so the MCP server builder can capture the store beforeBuild().
Syntax
Parameters
Exceptions
Properties
DatabaseId Virtual
Gets or sets the Cosmos database id.Syntax
Property Value
Type:string
IndexContainerId Virtual
Gets or sets the index container id.Syntax
Property Value
Type:string
TasksContainerId Virtual
Gets or sets the tasks container id.Syntax
Property Value
Type:string
Throughput Virtual
Gets or sets the RU/s used when creating containers, ornull
to create without dedicated throughput (serverless).
Syntax
Property Value
Type:System.Nullable<int>
Methods
DefaultClientOptions
Client options that serialize documents with CosmosSystemTextJsonSerializer.Syntax
Returns
Type:Microsoft.Azure.Cosmos.CosmosClientOptions
Options the host should pass to CosmosClient. The Cosmos SDK default
serializer is Newtonsoft; without these options, JsonPropertyName mapping
on task documents does not apply.
Dispose Virtual
Syntax
Related APIs
- System.IDisposable