Definition
Assembly: CloudNimble.McpEssentials.Core.dll Namespace: CloudNimble.McpEssentials.Core.Tasks Inheritance: System.ObjectSyntax
Summary
Registration knobs for authenticated MCP task stores. Passed toAddInMemoryMcpTaskStorePlus, WithTasksPlus,
and the Entity Framework equivalents.
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
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 tofalse 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, ornull for unlimited.
Syntax
Property Value
Type:System.Nullable<System.TimeSpan>
Remarks
When set to a positive value, the work window ends atCreatedAt + 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 isnull.
Syntax
Parameters
Exceptions
ApplyTo Virtual
Copies these values onto store.Syntax
Parameters
Exceptions
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?