Gryd.Infrastructure
Infrastructure abstractions for repository, caching, events, and multi-tenancy.
Installation
bash dotnet add package Gryd.Infrastructure
Overview
| Component | Description |
|---|---|
| IRepository | Generic repository pattern |
| IUnitOfWork | Transaction management |
| ICacheService | Caching abstraction |
| IEventDispatcher | Domain event dispatching |
| Multi-Tenancy | Tenant isolation infrastructure |
Architecture
This package provides interfaces and implementations for infrastructure concerns:
- Repository: Data access abstraction
- Unit of Work: Transaction coordination
- Cache Service: Caching abstraction (Redis, Memory)
- Event Dispatcher: Domain event publishing
- Multi-Tenancy: Query filters, interceptors, and context management