Skip to main content

Definition

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

Syntax

Summary

Registration knobs for authenticated MCP task stores. Passed to AddInMemoryMcpTaskStorePlus, WithTasksPlus, and the Entity Framework equivalents.

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

AutoSweep

Gets or sets whether the store pulses a throttled flush after create and on get.

Syntax

Property Value

Type: bool The default is true.

Remarks

Set to false and call SweepExpiredAsync from your own job when you want to own the schedule. The public flush handle always runs a full pass.

DefaultPollIntervalMs

Gets or sets the default poll interval in milliseconds for new tasks.

Syntax

Property Value

Type: long The default is 1000 milliseconds.

DefaultTimeToLive

Gets or sets the default time-to-live for new tasks, or null for unlimited.

Syntax

Property Value

Type: System.Nullable<System.TimeSpan>

Remarks

When set to a positive value, the work window ends at CreatedAt + TimeToLive and the row is discarded at CreatedAt + 2×TimeToLive, or sooner when a terminal get serves it. A null or non-positive value keeps tasks until a terminal get or until the store discards them.

ServeAndDrop

Gets or sets whether an owner get of a terminal snapshot serves it and then drops the row.

Syntax

Property Value

Type: bool The default is true.

SweepInterval

Gets or sets the minimum interval between automatic flush pulses.

Syntax

Property Value

Type: System.TimeSpan The default is 30 seconds. Zero skips the throttle.

Methods

Apply

Builds options from configure and copies them onto store. Does nothing when configure is null.

Syntax

Parameters

Exceptions

ApplyTo Virtual

Copies these values onto store.

Syntax

Parameters

Exceptions

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

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

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?