Skip to main content

Definition

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

Syntax

Summary

Selects an IMcpTaskStorePlus provider for WithTasksPlus and OData WithTasks. Core ships McpTaskStoreOptions}). Provider packages add UseEntityFramework, UseRedis, and so on.

Constructors

.ctor

Initializes a new instance of the McpTaskStoreBuilder class.

Syntax

Parameters

Exceptions

.ctor Inherited

Inherited from object

Syntax

Properties

CapturedServices

Gets the built IServiceProvider after MCP options compose, or null until the first request.

Syntax

Property Value

Type: System.IServiceProvider?

Services

Gets the application service collection.

Syntax

Property Value

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection

Store

Gets the store selected by the last Use* call.

Syntax

Property Value

Type: CloudNimble.McpEssentials.Core.Tasks.IMcpTaskStorePlus?

Methods

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?

UseEntityFramework Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_EntityFrameworkCore_McpTaskStoreBuilderExtensions
Uses EFCoreMcpTaskStore1` with a constant owner.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder The builder.

Type Parameters

Exceptions

UseEntityFramework Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_EntityFrameworkCore_McpTaskStoreBuilderExtensions
Uses EFCoreMcpTaskStore1` with an owner callback.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder The builder.

Type Parameters

Exceptions

UseEntityFramework Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_EntityFrameworkCore_McpTaskStoreBuilderExtensions
Uses EFCoreMcpTaskStore1`, resolving the owner from a principal.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder The builder.

Type Parameters

Exceptions

UseEntityFramework Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_EntityFrameworkCore_McpTaskStoreBuilderExtensions
Uses EFCoreMcpTaskStore1`, resolving the owner from the built provider.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder The builder.

Type Parameters

Exceptions

UseEntityFramework Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_EntityFrameworkCore_McpTaskStoreBuilderExtensions
Uses EFCoreMcpTaskStore1` with an owner id from the built provider.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder The builder.

Type Parameters

Exceptions

UseInMemory

Uses InMemoryMcpTaskStorePlus with a constant owner.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder This builder.

Exceptions

UseInMemory

Uses InMemoryMcpTaskStorePlus with an owner callback.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder This builder.

Exceptions

UseInMemory

Uses InMemoryMcpTaskStorePlus, resolving the owner from a principal.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder This builder.

Exceptions

UseInMemory

Uses InMemoryMcpTaskStorePlus, resolving the owner from the built IServiceProvider. ASP.NET Core hosts pass sp => sp.GetRequiredService<IHttpContextAccessor>().HttpContext?.User.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder This builder.

Exceptions

UseInMemory

Uses InMemoryMcpTaskStorePlus with an owner id resolved from the built IServiceProvider.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder This builder.

Exceptions

UseRedis Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Redis_McpTaskStoreBuilderExtensions
Uses RedisMcpTaskStore with a constant owner.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder The builder.

Exceptions

UseRedis Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Redis_McpTaskStoreBuilderExtensions
Uses RedisMcpTaskStore with an owner callback.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder The builder.

Exceptions

UseRedis Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Redis_McpTaskStoreBuilderExtensions
Uses RedisMcpTaskStore, resolving the owner from a principal.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder The builder.

Exceptions

UseRedis Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Redis_McpTaskStoreBuilderExtensions
Uses RedisMcpTaskStore, resolving the owner from the built provider.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder The builder.

Exceptions

UseRedis Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Redis_McpTaskStoreBuilderExtensions
Uses RedisMcpTaskStore with an owner id from the built provider. Resolves IConnectionMultiplexer from DI.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder The builder.

Exceptions

UseStore

Registers store as the selected provider. Durable packages call this from their Use* extensions.

Syntax

Parameters

Returns

Type: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBuilder This builder.

Exceptions