Appearance
Gryd.Infrastructure
Infrastructure abstractions for repository, caching, events, storage, and multi-tenancy.
Installation
bash
dotnet add package Gryd.InfrastructureOverview
| Component | Description |
|---|---|
| IRepository | Generic repository pattern |
| IUnitOfWork | Transaction management |
| ICacheService | Caching abstraction |
| IEventDispatcher | Domain event dispatching |
| Transactional Outbox | Atomic intent, local PostgreSQL inbox, opt-in worker, declared waiting and operational query |
| Object Storage | Unified upload/download integration for S3, GCS, and Azure Blob |
| Multi-Tenancy | Tenant isolation infrastructure |
| Background Tenancy | Jobs, consumers and system services: capture, restore, fail closed |
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
- Object Storage: Unified cloud object storage abstraction
- Multi-Tenancy: Query filters, interceptors, and context management