Table of Contents

Class InMemoryServiceExtensions

Namespace
Core.CliniCore.Repositories.InMemory
Assembly
Core.CliniCore.dll

Extension methods for registering InMemory repositories with dependency injection. Use this for testing or standalone operation without an API backend.

public static class InMemoryServiceExtensions
Inheritance
InMemoryServiceExtensions
Inherited Members

Methods

AddInMemoryRepositories(IServiceCollection)

Registers all InMemory repository implementations with the service collection. Data is stored in memory and will not persist between application restarts.

public static IServiceCollection AddInMemoryRepositories(this IServiceCollection services)

Parameters

services IServiceCollection

The service collection

Returns

IServiceCollection

The service collection for chaining