Namespace Core.CliniCore.Repositories.InMemory
Classes
- InMemoryAdministratorRepository
In-memory implementation of IAdministratorRepository. Provides administrator-specific query operations.
- InMemoryAppointmentRepository
In-memory implementation of IAppointmentRepository. Provides appointment-specific query operations including conflict detection.
- InMemoryClinicalDocumentRepository
In-memory implementation of IClinicalDocumentRepository. Provides clinical document-specific query operations.
- InMemoryCredentialRepository
In-memory implementation of ICredentialRepository. Maintains a secondary index by username for O(1) authentication lookups.
- InMemoryPatientRepository
In-memory implementation of IPatientRepository. Provides patient-specific query operations.
- InMemoryPhysicianRepository
In-memory implementation of IPhysicianRepository. Provides physician-specific query operations.
- InMemoryRepositoryBase<T>
Abstract base class for in-memory repository implementations. Provides thread-safe CRUD operations using a dictionary backing store.
Design Notes:
- Uses lock-based synchronization for thread safety
- Dictionary keyed by entity Id for O(1) lookups
- Derived classes implement Search() method for entity-specific search logic
- InMemoryServiceExtensions
Extension methods for registering InMemory repositories with dependency injection. Use this for testing or standalone operation without an API backend.