Skip to main content

Definition

Assembly: Microsoft.Extensions.DependencyInjection.Abstractions.dll Namespace: Microsoft.Extensions.DependencyInjection

Syntax

Summary

This type is defined in Microsoft.Extensions.DependencyInjection.Abstractions.

Remarks

See Microsoft documentation for more information about the rest of the API.

Methods

AddFormElicitation Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Core_ServiceCollectionExtensions
Registers form as a keyed singleton IFormElicitationSource named name. Hosts resolve it the same way they resolve a named HttpClient.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions

Examples

Remarks

A duplicate registration of the same name throws. Tests that need to replace a form build a fresh collection.

AddInMemoryMcpTaskStorePlus Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Core_ServiceCollectionExtensions
Registers InMemoryMcpTaskStorePlus as the singleton IMcpTaskStore and IMcpTaskStorePlus for a single user.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions

AddInMemoryMcpTaskStorePlus Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Core_ServiceCollectionExtensions
Registers InMemoryMcpTaskStorePlus as the singleton IMcpTaskStore and IMcpTaskStorePlus.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions

AddInMemoryMcpTaskStorePlus Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Core_ServiceCollectionExtensions
Registers InMemoryMcpTaskStorePlus using a ClaimsPrincipal factory.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions

AddMcpEssentialsCosmosTasks Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Cosmos_ServiceCollectionExtensions
Registers CosmosMcpTaskStore as the singleton IMcpTaskStore and IMcpTaskStorePlus for a single user.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions

AddMcpEssentialsCosmosTasks Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Cosmos_ServiceCollectionExtensions
Registers CosmosMcpTaskStore as the singleton IMcpTaskStore and IMcpTaskStorePlus.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions

AddMcpEssentialsCosmosTasks Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Cosmos_ServiceCollectionExtensions
Registers CosmosMcpTaskStore using a ClaimsPrincipal factory resolved from the built provider.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions

AddMcpEssentialsEntityFrameworkTasks Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_EntityFrameworkCore_ServiceCollectionExtensions
Registers EFCoreMcpTaskStore1` as the singleton IMcpTaskStore and IMcpTaskStorePlus for a single user.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Type Parameters

Exceptions

AddMcpEssentialsEntityFrameworkTasks Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_EntityFrameworkCore_ServiceCollectionExtensions
Registers EFCoreMcpTaskStore1` as the singleton IMcpTaskStore and IMcpTaskStorePlus.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Type Parameters

Exceptions

AddMcpEssentialsEntityFrameworkTasks Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_EntityFrameworkCore_ServiceCollectionExtensions
Registers EFCoreMcpTaskStore1` using a ClaimsPrincipal factory resolved from the built provider.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Type Parameters

Exceptions

AddMcpEssentialsPostgreSqlTasks Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_PostgreSQL_ServiceCollectionExtensions
Registers PostgreSqlMcpTaskStore as the singleton IMcpTaskStore and IMcpTaskStorePlus for a single user.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions

AddMcpEssentialsPostgreSqlTasks Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_PostgreSQL_ServiceCollectionExtensions
Registers PostgreSqlMcpTaskStore as the singleton IMcpTaskStore and IMcpTaskStorePlus.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions

AddMcpEssentialsPostgreSqlTasks Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_PostgreSQL_ServiceCollectionExtensions
Registers PostgreSqlMcpTaskStore using a ClaimsPrincipal factory resolved from the built provider.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions

AddMcpEssentialsRedisTasks Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Redis_ServiceCollectionExtensions
Registers RedisMcpTaskStore as the singleton IMcpTaskStore and IMcpTaskStorePlus for a single user.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions

AddMcpEssentialsRedisTasks Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Redis_ServiceCollectionExtensions
Registers RedisMcpTaskStore as the singleton IMcpTaskStore and IMcpTaskStorePlus.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions

AddMcpEssentialsRedisTasks Extension

Extension method from Microsoft.Extensions.DependencyInjection.McpEssentials_Redis_ServiceCollectionExtensions
Registers RedisMcpTaskStore using a ClaimsPrincipal factory resolved from the built provider.

Syntax

Parameters

Returns

Type: Microsoft.Extensions.DependencyInjection.IServiceCollection The service collection.

Exceptions