# Fabricators.Infrastructure

Public .NET API signatures and documentation coverage.

Generated from compiled public metadata. Missing summaries are explicitly reported in catalog.json.

## .ctor

```csharp
public Fabricators.Infrastructure.Caching.FusionCacheService.FusionCacheService(ZiggyCreatures.Caching.Fusion.IFusionCache cache)
```

Summary not yet documented.

## GetOrDefaultAsync

```csharp
public System.Threading.Tasks.Task<T?> Fabricators.Infrastructure.Caching.FusionCacheService.GetOrDefaultAsync<T>(string key, System.Threading.CancellationToken token = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## GetOrSetAsync

```csharp
public System.Threading.Tasks.Task<T?> Fabricators.Infrastructure.Caching.FusionCacheService.GetOrSetAsync<T>(string key, System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<T>> factory, System.TimeSpan duration, System.Threading.CancellationToken token = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## RemoveAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.Caching.FusionCacheService.RemoveAsync(string key, System.Threading.CancellationToken token = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## SetAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.Caching.FusionCacheService.SetAsync<T>(string key, T value, System.TimeSpan duration, System.Threading.CancellationToken token = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.DomainEvents.DomainEventsDispatcher.DomainEventsDispatcher(System.IServiceProvider serviceProvider)
```

Summary not yet documented.

## DispatchAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.DomainEvents.DomainEventsDispatcher.DispatchAsync(System.Collections.Generic.IEnumerable<Fabricators.Kernel.Events.IDomainEvent> domainEvents, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## AddDomainEventsDispatcher

```csharp
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Fabricators.Infrastructure.DomainEvents.DomainEventsServiceCollectionExtensions.AddDomainEventsDispatcher(Microsoft.Extensions.DependencyInjection.IServiceCollection services)
```

Summary not yet documented.

## DispatchAsync

```csharp
System.Threading.Tasks.Task Fabricators.Infrastructure.DomainEvents.IDomainEventsDispatcher.DispatchAsync(System.Collections.Generic.IEnumerable<Fabricators.Kernel.Events.IDomainEvent> domainEvents, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Persistence.EfBatchUpserter<TDbContext, TEntity, TKey>.EfBatchUpserter(Microsoft.EntityFrameworkCore.IDbContextFactory<TDbContext> dbContextFactory, Fabricators.Infrastructure.Persistence.IEfUpsertMap<TDbContext, TEntity, TKey> map, Microsoft.Extensions.Logging.ILogger<Fabricators.Infrastructure.Persistence.EfBatchUpserter<TDbContext, TEntity, TKey>> logger)
```

Summary not yet documented.

## UpsertBatchAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.Persistence.EfBatchUpserter<TDbContext, TEntity, TKey>.UpsertBatchAsync(System.Collections.Generic.IReadOnlyCollection<TEntity> incoming, System.Linq.Expressions.Expression<System.Func<TEntity, bool>>? scope, System.Threading.CancellationToken cancellationToken)
```

Summary not yet documented.

## .ctor

```csharp
protected Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.EfRepositoryBase(Microsoft.EntityFrameworkCore.IDbContextFactory<TContext> factory, Fabricators.Infrastructure.DomainEvents.IDomainEventsDispatcher domainEventsDispatcher, Microsoft.Extensions.Logging.ILogger logger, System.Func<TContext, Microsoft.EntityFrameworkCore.DbSet<TEntity>> setSelector)
```

Summary not yet documented.

## AddAsync

```csharp
public System.Threading.Tasks.Task<TEntity?> Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.AddAsync(TEntity resource, System.Threading.CancellationToken cancellationToken)
```

Summary not yet documented.

## FirstOrDefaultAsync

```csharp
public System.Threading.Tasks.Task<TEntity?> Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.FirstOrDefaultAsync(System.Linq.Expressions.Expression<System.Func<TEntity, bool>> whereClause, System.Threading.CancellationToken cancellationToken)
```

Summary not yet documented.

## GetAsync

```csharp
public System.Threading.Tasks.Task<System.Collections.Generic.List<TEntity>> Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.GetAsync(System.Linq.Expressions.Expression<System.Func<TEntity, bool>> whereClause, System.Threading.CancellationToken cancellationToken)
```

Summary not yet documented.

## LogDeleteError

```csharp
protected void Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.LogDeleteError(System.Exception ex)
```

Summary not yet documented.

## LogUpdateError

```csharp
protected void Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.LogUpdateError(System.Exception ex)
```

Summary not yet documented.

## SaveChangesAndDispatchAsync

```csharp
protected System.Threading.Tasks.Task<int> Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.SaveChangesAndDispatchAsync(Microsoft.EntityFrameworkCore.DbContext dbContext, System.Threading.CancellationToken cancellationToken)
```

Summary not yet documented.

## UpdateAsync

```csharp
public abstract System.Threading.Tasks.Task<TEntity?> Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.UpdateAsync(TEntity resource, System.Threading.CancellationToken cancellationToken)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Persistence.EfUpsertMap<TDbContext, TEntity, TKey>.EfUpsertMap(System.Func<TDbContext, Microsoft.EntityFrameworkCore.DbSet<TEntity>> dbSet, System.Linq.Expressions.Expression<System.Func<TEntity, TKey>> keySelectorExpr, System.Action<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<TEntity>, TEntity>? onUpdate = null)
```

Summary not yet documented.

## CreateDbContextAsync

```csharp
System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.DbContext> Fabricators.Infrastructure.Persistence.IModuleDbContextFactory.CreateDbContextAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Creates a new context; the caller owns its disposal and unit of work.

## Configure

```csharp
void Fabricators.Infrastructure.Persistence.IModuleModel.Configure(Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Persistence.ModuleDbContextFactory<TContext>.ModuleDbContextFactory(Microsoft.EntityFrameworkCore.IDbContextFactory<TContext> factory)
```

Summary not yet documented.

## CreateDbContextAsync

```csharp
public System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.DbContext> Fabricators.Infrastructure.Persistence.ModuleDbContextFactory<TContext>.CreateDbContextAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Persistence.ModuleModelCacheKeyFactory.ModuleModelCacheKeyFactory()
```

Summary not yet documented.

## Create

```csharp
public object Fabricators.Infrastructure.Persistence.ModuleModelCacheKeyFactory.Create(Microsoft.EntityFrameworkCore.DbContext context, bool designTime)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Persistence.ModuleModelContribution.ModuleModelContribution(string Id, string Revision, Fabricators.Infrastructure.Persistence.IModuleModel Model)
```

Summary not yet documented.

## Deconstruct

```csharp
public void Fabricators.Infrastructure.Persistence.ModuleModelContribution.Deconstruct(out string Id, out string Revision, out Fabricators.Infrastructure.Persistence.IModuleModel Model)
```

Summary not yet documented.

## Equals

```csharp
public bool Fabricators.Infrastructure.Persistence.ModuleModelContribution.Equals(Fabricators.Infrastructure.Persistence.ModuleModelContribution? other)
```

Summary not yet documented.

## Equals

```csharp
public override bool Fabricators.Infrastructure.Persistence.ModuleModelContribution.Equals(object? obj)
```

Summary not yet documented.

## GetHashCode

```csharp
public override int Fabricators.Infrastructure.Persistence.ModuleModelContribution.GetHashCode()
```

Summary not yet documented.

## ToString

```csharp
public override string Fabricators.Infrastructure.Persistence.ModuleModelContribution.ToString()
```

Summary not yet documented.

## op_Equality

```csharp
public static bool Fabricators.Infrastructure.Persistence.ModuleModelContribution.operator ==(Fabricators.Infrastructure.Persistence.ModuleModelContribution? left, Fabricators.Infrastructure.Persistence.ModuleModelContribution? right)
```

Summary not yet documented.

## op_Inequality

```csharp
public static bool Fabricators.Infrastructure.Persistence.ModuleModelContribution.operator !=(Fabricators.Infrastructure.Persistence.ModuleModelContribution? left, Fabricators.Infrastructure.Persistence.ModuleModelContribution? right)
```

Summary not yet documented.

## <Clone>$

```csharp
public Fabricators.Infrastructure.Persistence.ModuleModelContribution Fabricators.Infrastructure.Persistence.ModuleModelContribution.<Clone>$()
```

Summary not yet documented.

## ApplyModuleModels

```csharp
public static Microsoft.EntityFrameworkCore.ModelBuilder Fabricators.Infrastructure.Persistence.ModuleModelExtensions.ApplyModuleModels(Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, System.Collections.Generic.IEnumerable<Fabricators.Infrastructure.Persistence.IModuleModel> modules)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Persistence.ModuleModelSet.ModuleModelSet(System.Collections.Generic.IEnumerable<Fabricators.Infrastructure.Persistence.ModuleModelContribution> contributions, string modelVariant = "")
```

Summary not yet documented.

## ApplyTo

```csharp
public void Fabricators.Infrastructure.Persistence.ModuleModelSet.ApplyTo(Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder)
```

Summary not yet documented.

## AddFoundationModuleDbContext

```csharp
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Fabricators.Infrastructure.Persistence.ModulePersistenceRegistration.AddFoundationModuleDbContext<TContext>(Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TContext : Microsoft.EntityFrameworkCore.DbContext
```

Summary not yet documented.

## UseFoundationModuleModelCache

```csharp
public static Microsoft.EntityFrameworkCore.DbContextOptionsBuilder Fabricators.Infrastructure.Persistence.ModulePersistenceRegistration.UseFoundationModuleModelCache(Microsoft.EntityFrameworkCore.DbContextOptionsBuilder options)
```

Summary not yet documented.

## UseFoundationModuleModelCache

```csharp
public static Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<TContext> Fabricators.Infrastructure.Persistence.ModulePersistenceRegistration.UseFoundationModuleModelCache<TContext>(Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<TContext> options) where TContext : Microsoft.EntityFrameworkCore.DbContext
```

Summary not yet documented.

## AddEfBatchUpserter

```csharp
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Fabricators.Infrastructure.Persistence.PersistenceServiceCollectionExtensions.AddEfBatchUpserter<TDbContext, TEntity, TKey>(Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TDbContext : Microsoft.EntityFrameworkCore.DbContext where TEntity : class where TKey : notnull
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.ApiKeyGenerator.ApiKeyGenerator()
```

Summary not yet documented.

## Generate

```csharp
public Fabricators.Application.Security.GeneratedApiKey Fabricators.Infrastructure.Security.ApiKeyGenerator.Generate(string consumerPrefix)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.ApiKeyMaintenance.ApiKeyMaintenance(Fabricators.Infrastructure.Security.ApiKeySnapshotCache cache, Fabricators.Infrastructure.Security.ChannelApiKeyUsageSink usageSink, Fabricators.Application.Security.IApiConsumerStore store, Fabricators.Infrastructure.Security.ApiKeyProviderOptions options)
```

Summary not yet documented.

## FlushUsageAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeyMaintenance.FlushUsageAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## InitializeAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeyMaintenance.InitializeAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## RefreshAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeyMaintenance.RefreshAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## RunOnceAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeyMaintenance.RunOnceAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.ApiKeyManager.ApiKeyManager(Fabricators.Application.Security.IApiConsumerStore store, Fabricators.Application.Security.IApiKeyGenerator generator, Fabricators.Application.Security.IApiKeyHasher hasher, Fabricators.Application.Security.IApiKeyCacheInvalidator cacheInvalidator, Fabricators.Infrastructure.Security.ApiKeyProviderOptions options, System.TimeProvider timeProvider, Microsoft.Extensions.Logging.ILogger<Fabricators.Infrastructure.Security.ApiKeyManager> logger)
```

Summary not yet documented.

## IssueAsync

```csharp
public System.Threading.Tasks.Task<Fabricators.Kernel.Common.Result<Fabricators.Application.Security.IssuedApiKey>> Fabricators.Infrastructure.Security.ApiKeyManager.IssueAsync(string consumerId, string consumerPrefix, System.DateTimeOffset expiresUtc, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## RevokeAsync

```csharp
public System.Threading.Tasks.Task<Fabricators.Kernel.Common.Result> Fabricators.Infrastructure.Security.ApiKeyManager.RevokeAsync(string keyId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.ApiKeyProviderOptions.ApiKeyProviderOptions()
```

Summary not yet documented.

## AddFabricatorsApiKeys

```csharp
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Fabricators.Infrastructure.Security.ApiKeyServiceCollectionExtensions.AddFabricatorsApiKeys<TContext>(Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func<TContext, Microsoft.EntityFrameworkCore.DbSet<Fabricators.Application.Security.ApiConsumer>> consumerSetSelector, System.Func<TContext, Microsoft.EntityFrameworkCore.DbSet<Fabricators.Application.Security.ApiKeyRecord>> keySetSelector, System.Action<Fabricators.Infrastructure.Security.ApiKeyProviderOptions>? configure = null) where TContext : Microsoft.EntityFrameworkCore.DbContext
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.ApiKeySnapshotCache.ApiKeySnapshotCache(Fabricators.Application.Security.IApiConsumerStore store, Fabricators.Application.Security.IApiKeyHasher hasher, Fabricators.Application.Security.IApiKeyUsageSink usageSink, Fabricators.Infrastructure.Security.ApiKeyProviderOptions options, System.TimeProvider timeProvider)
```

Summary not yet documented.

## Dispose

```csharp
public void Fabricators.Infrastructure.Security.ApiKeySnapshotCache.Dispose()
```

Summary not yet documented.

## InitializeAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeySnapshotCache.InitializeAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## InvalidateAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeySnapshotCache.InvalidateAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## RefreshAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeySnapshotCache.RefreshAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## Resolve

```csharp
public Fabricators.Kernel.Security.ApiKeyIdentity? Fabricators.Infrastructure.Security.ApiKeySnapshotCache.Resolve(string presentedKey)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.Argon2idPasswordHasher.Argon2idPasswordHasher()
```

Summary not yet documented.

## Hash

```csharp
public string Fabricators.Infrastructure.Security.Argon2idPasswordHasher.Hash(string password)
```

Summary not yet documented.

## Verify

```csharp
public Fabricators.Application.Security.PasswordVerification Fabricators.Infrastructure.Security.Argon2idPasswordHasher.Verify(string password, string expectedHash)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.ChannelApiKeyUsageSink.ChannelApiKeyUsageSink(Fabricators.Infrastructure.Security.ApiKeyProviderOptions options)
```

Summary not yet documented.

## Drain

```csharp
public System.Collections.Generic.IReadOnlyDictionary<string, System.DateTimeOffset> Fabricators.Infrastructure.Security.ChannelApiKeyUsageSink.Drain(int maximumCount)
```

Summary not yet documented.

## Requeue

```csharp
public void Fabricators.Infrastructure.Security.ChannelApiKeyUsageSink.Requeue(System.Collections.Generic.IReadOnlyDictionary<string, System.DateTimeOffset> observations)
```

Summary not yet documented.

## TryRecord

```csharp
public bool Fabricators.Infrastructure.Security.ChannelApiKeyUsageSink.TryRecord(string keyId, System.DateTimeOffset usedUtc)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.Persistence.ApiConsumerConfiguration.ApiConsumerConfiguration(string schema = "security")
```

Summary not yet documented.

## Configure

```csharp
public void Fabricators.Infrastructure.Security.Persistence.ApiConsumerConfiguration.Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<Fabricators.Application.Security.ApiConsumer> builder)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.Persistence.ApiKeyRecordConfiguration.ApiKeyRecordConfiguration(string schema = "security")
```

Summary not yet documented.

## Configure

```csharp
public void Fabricators.Infrastructure.Security.Persistence.ApiKeyRecordConfiguration.Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<Fabricators.Application.Security.ApiKeyRecord> builder)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.Persistence.EfApiConsumerStore<TContext>.EfApiConsumerStore(Microsoft.EntityFrameworkCore.IDbContextFactory<TContext> factory, System.Func<TContext, Microsoft.EntityFrameworkCore.DbSet<Fabricators.Application.Security.ApiConsumer>> consumerSetSelector, System.Func<TContext, Microsoft.EntityFrameworkCore.DbSet<Fabricators.Application.Security.ApiKeyRecord>> keySetSelector)
```

Summary not yet documented.

## AddConsumerAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.Persistence.EfApiConsumerStore<TContext>.AddConsumerAsync(Fabricators.Application.Security.ApiConsumer consumer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## GetConsumerAsync

```csharp
public System.Threading.Tasks.Task<Fabricators.Application.Security.ApiConsumer?> Fabricators.Infrastructure.Security.Persistence.EfApiConsumerStore<TContext>.GetConsumerAsync(string consumerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## GetKeysAsync

```csharp
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Fabricators.Application.Security.ApiKeyRecord>> Fabricators.Infrastructure.Security.Persistence.EfApiConsumerStore<TContext>.GetKeysAsync(string consumerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## LoadSnapshotAsync

```csharp
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Fabricators.Application.Security.ApiKeySnapshotEntry>> Fabricators.Infrastructure.Security.Persistence.EfApiConsumerStore<TContext>.LoadSnapshotAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## RevokeKeyAsync

```csharp
public System.Threading.Tasks.Task<bool> Fabricators.Infrastructure.Security.Persistence.EfApiConsumerStore<TContext>.RevokeKeyAsync(string keyId, System.DateTimeOffset revokedUtc, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## TryAddKeyAsync

```csharp
public System.Threading.Tasks.Task<bool> Fabricators.Infrastructure.Security.Persistence.EfApiConsumerStore<TContext>.TryAddKeyAsync(Fabricators.Application.Security.ApiKeyRecord key, int maximumActiveKeys, System.DateTimeOffset nowUtc, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## UpdateLastUsedAsync

```csharp
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.Persistence.EfApiConsumerStore<TContext>.UpdateLastUsedAsync(System.Collections.Generic.IReadOnlyDictionary<string, System.DateTimeOffset> observations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.Persistence.EfUserSessionStore<TContext>.EfUserSessionStore(Microsoft.EntityFrameworkCore.IDbContextFactory<TContext> factory, System.Func<TContext, Microsoft.EntityFrameworkCore.DbSet<Fabricators.Application.Security.RefreshSessionRecord>> sessionSetSelector, System.Func<TContext, Microsoft.EntityFrameworkCore.DbSet<Fabricators.Infrastructure.Security.Persistence.UserSessionCounter>> counterSetSelector)
```

Summary not yet documented.

## GetSessionVersionAsync

```csharp
public System.Threading.Tasks.Task<int> Fabricators.Infrastructure.Security.Persistence.EfUserSessionStore<TContext>.GetSessionVersionAsync(string userId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## RevokeAllAsync

```csharp
public System.Threading.Tasks.Task<int> Fabricators.Infrastructure.Security.Persistence.EfUserSessionStore<TContext>.RevokeAllAsync(string userId, System.DateTimeOffset revokedUtc, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## RevokeFamilyAsync

```csharp
public System.Threading.Tasks.Task<int> Fabricators.Infrastructure.Security.Persistence.EfUserSessionStore<TContext>.RevokeFamilyAsync(string userId, System.Guid family, System.DateTimeOffset revokedUtc, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## TryAddAsync

```csharp
public System.Threading.Tasks.Task<bool> Fabricators.Infrastructure.Security.Persistence.EfUserSessionStore<TContext>.TryAddAsync(Fabricators.Application.Security.RefreshSessionRecord session, int expectedSessionVersion, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## TryRedeemAsync

```csharp
public System.Threading.Tasks.Task<Fabricators.Application.Security.RefreshRedemption> Fabricators.Infrastructure.Security.Persistence.EfUserSessionStore<TContext>.TryRedeemAsync(string tokenHash, System.DateTimeOffset nowUtc, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.Persistence.RefreshSessionRecordConfiguration.RefreshSessionRecordConfiguration(string schema = "security")
```

Summary not yet documented.

## Configure

```csharp
public void Fabricators.Infrastructure.Security.Persistence.RefreshSessionRecordConfiguration.Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<Fabricators.Application.Security.RefreshSessionRecord> builder)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.Persistence.UserSessionCounter.UserSessionCounter(string userId)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.Persistence.UserSessionCounterConfiguration.UserSessionCounterConfiguration(string schema = "security")
```

Summary not yet documented.

## Configure

```csharp
public void Fabricators.Infrastructure.Security.Persistence.UserSessionCounterConfiguration.Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<Fabricators.Infrastructure.Security.Persistence.UserSessionCounter> builder)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.RefreshTokenGenerator.RefreshTokenGenerator()
```

Summary not yet documented.

## Generate

```csharp
public Fabricators.Application.Security.GeneratedRefreshToken Fabricators.Infrastructure.Security.RefreshTokenGenerator.Generate()
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.Sha256ApiKeyHasher.Sha256ApiKeyHasher()
```

Summary not yet documented.

## Hash

```csharp
public string Fabricators.Infrastructure.Security.Sha256ApiKeyHasher.Hash(string plaintext)
```

Summary not yet documented.

## Verify

```csharp
public bool Fabricators.Infrastructure.Security.Sha256ApiKeyHasher.Verify(string plaintext, string expectedHash)
```

Summary not yet documented.

## .ctor

```csharp
public Fabricators.Infrastructure.Security.Sha256RefreshTokenHasher.Sha256RefreshTokenHasher()
```

Summary not yet documented.

## Hash

```csharp
public string Fabricators.Infrastructure.Security.Sha256RefreshTokenHasher.Hash(string token)
```

Summary not yet documented.

## AddFabricatorsUserSessions

```csharp
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Fabricators.Infrastructure.Security.UserSessionServiceCollectionExtensions.AddFabricatorsUserSessions<TContext>(Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Func<TContext, Microsoft.EntityFrameworkCore.DbSet<Fabricators.Application.Security.RefreshSessionRecord>> sessionSetSelector, System.Func<TContext, Microsoft.EntityFrameworkCore.DbSet<Fabricators.Infrastructure.Security.Persistence.UserSessionCounter>> counterSetSelector) where TContext : Microsoft.EntityFrameworkCore.DbContext
```

Summary not yet documented.

## Factory

```csharp
protected Microsoft.EntityFrameworkCore.IDbContextFactory<TContext> Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.Factory { get; }
```

Summary not yet documented.

## Logger

```csharp
protected Microsoft.Extensions.Logging.ILogger Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.Logger { get; }
```

Summary not yet documented.

## SetSelector

```csharp
protected System.Func<TContext, Microsoft.EntityFrameworkCore.DbSet<TEntity>> Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.SetSelector { get; }
```

Summary not yet documented.

## DbSet

```csharp
public System.Func<TDbContext, Microsoft.EntityFrameworkCore.DbSet<TEntity>> Fabricators.Infrastructure.Persistence.EfUpsertMap<TDbContext, TEntity, TKey>.DbSet { get; }
```

Summary not yet documented.

## KeySelectorExpr

```csharp
public System.Linq.Expressions.Expression<System.Func<TEntity, TKey>> Fabricators.Infrastructure.Persistence.EfUpsertMap<TDbContext, TEntity, TKey>.KeySelectorExpr { get; }
```

Summary not yet documented.

## OnUpdate

```csharp
public System.Action<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<TEntity>, TEntity>? Fabricators.Infrastructure.Persistence.EfUpsertMap<TDbContext, TEntity, TKey>.OnUpdate { get; }
```

Summary not yet documented.

## DbSet

```csharp
System.Func<TDbContext, Microsoft.EntityFrameworkCore.DbSet<TEntity>> Fabricators.Infrastructure.Persistence.IEfUpsertMap<TDbContext, TEntity, TKey>.DbSet { get; }
```

Summary not yet documented.

## KeySelectorExpr

```csharp
System.Linq.Expressions.Expression<System.Func<TEntity, TKey>> Fabricators.Infrastructure.Persistence.IEfUpsertMap<TDbContext, TEntity, TKey>.KeySelectorExpr { get; }
```

Summary not yet documented.

## OnUpdate

```csharp
System.Action<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<TEntity>, TEntity>? Fabricators.Infrastructure.Persistence.IEfUpsertMap<TDbContext, TEntity, TKey>.OnUpdate { get; }
```

Summary not yet documented.

## ModuleModels

```csharp
Fabricators.Infrastructure.Persistence.ModuleModelSet Fabricators.Infrastructure.Persistence.IModuleModelContext.ModuleModels { get; }
```

Summary not yet documented.

## Id

```csharp
public string Fabricators.Infrastructure.Persistence.ModuleModelContribution.Id { get; init; }
```

Summary not yet documented.

## Model

```csharp
public Fabricators.Infrastructure.Persistence.IModuleModel Fabricators.Infrastructure.Persistence.ModuleModelContribution.Model { get; init; }
```

Summary not yet documented.

## Revision

```csharp
public string Fabricators.Infrastructure.Persistence.ModuleModelContribution.Revision { get; init; }
```

Summary not yet documented.

## Contributions

```csharp
public System.Collections.Generic.IReadOnlyList<Fabricators.Infrastructure.Persistence.ModuleModelContribution> Fabricators.Infrastructure.Persistence.ModuleModelSet.Contributions { get; }
```

Summary not yet documented.

## Fingerprint

```csharp
public string Fabricators.Infrastructure.Persistence.ModuleModelSet.Fingerprint { get; }
```

Summary not yet documented.

## MaximumActiveKeysPerConsumer

```csharp
public int Fabricators.Infrastructure.Security.ApiKeyProviderOptions.MaximumActiveKeysPerConsumer { get; set; }
```

Summary not yet documented.

## MaximumKeyLifetime

```csharp
public System.TimeSpan Fabricators.Infrastructure.Security.ApiKeyProviderOptions.MaximumKeyLifetime { get; set; }
```

Summary not yet documented.

## MaximumStaleAge

```csharp
public System.TimeSpan Fabricators.Infrastructure.Security.ApiKeyProviderOptions.MaximumStaleAge { get; set; }
```

Summary not yet documented.

## RefreshInterval

```csharp
public System.TimeSpan Fabricators.Infrastructure.Security.ApiKeyProviderOptions.RefreshInterval { get; set; }
```

Summary not yet documented.

## UsageBatchSize

```csharp
public int Fabricators.Infrastructure.Security.ApiKeyProviderOptions.UsageBatchSize { get; set; }
```

Summary not yet documented.

## UsageChannelCapacity

```csharp
public int Fabricators.Infrastructure.Security.ApiKeyProviderOptions.UsageChannelCapacity { get; set; }
```

Summary not yet documented.

## IsUsable

```csharp
public bool Fabricators.Infrastructure.Security.ApiKeySnapshotCache.IsUsable { get; }
```

Summary not yet documented.

## LastRefreshError

```csharp
public System.Exception? Fabricators.Infrastructure.Security.ApiKeySnapshotCache.LastRefreshError { get; }
```

Summary not yet documented.

## LastSuccessfulRefreshUtc

```csharp
public System.DateTimeOffset? Fabricators.Infrastructure.Security.ApiKeySnapshotCache.LastSuccessfulRefreshUtc { get; }
```

Summary not yet documented.

## DroppedObservations

```csharp
public long Fabricators.Infrastructure.Security.ChannelApiKeyUsageSink.DroppedObservations { get; }
```

Summary not yet documented.

## UserId

```csharp
public string Fabricators.Infrastructure.Security.Persistence.UserSessionCounter.UserId { get; }
```

Summary not yet documented.

## Version

```csharp
public int Fabricators.Infrastructure.Security.Persistence.UserSessionCounter.Version { get; }
```

Moved only by the store, and only through a set-based increment inside the transaction that revoked the rows. There is deliberately no in-memory mutator: a read-modify-write through the change tracker would lose a concurrent bump.

## FusionCacheService

```csharp
class Fabricators.Infrastructure.Caching.FusionCacheService
```

Summary not yet documented.

## DomainEventsDispatcher

```csharp
class Fabricators.Infrastructure.DomainEvents.DomainEventsDispatcher
```

Dispatches events after persistence. Handlers are best-effort side effects: the database write has already committed when a handler runs or fails.

## DomainEventsServiceCollectionExtensions

```csharp
class Fabricators.Infrastructure.DomainEvents.DomainEventsServiceCollectionExtensions
```

Summary not yet documented.

## IDomainEventsDispatcher

```csharp
interface Fabricators.Infrastructure.DomainEvents.IDomainEventsDispatcher
```

Summary not yet documented.

## EfBatchUpserter

```csharp
class Fabricators.Infrastructure.Persistence.EfBatchUpserter<TDbContext, TEntity, TKey> where TDbContext : Microsoft.EntityFrameworkCore.DbContext where TEntity : class where TKey : notnull
```

Summary not yet documented.

## EfRepositoryBase

```csharp
class Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext> where TEntity : class where TContext : Microsoft.EntityFrameworkCore.DbContext
```

Summary not yet documented.

## EfUpsertMap

```csharp
class Fabricators.Infrastructure.Persistence.EfUpsertMap<TDbContext, TEntity, TKey> where TDbContext : Microsoft.EntityFrameworkCore.DbContext where TEntity : class where TKey : notnull
```

Summary not yet documented.

## IEfUpsertMap

```csharp
interface Fabricators.Infrastructure.Persistence.IEfUpsertMap<TDbContext, TEntity, TKey> where TDbContext : Microsoft.EntityFrameworkCore.DbContext where TEntity : class where TKey : notnull
```

Summary not yet documented.

## IModuleDbContextFactory

```csharp
interface Fabricators.Infrastructure.Persistence.IModuleDbContextFactory
```

A module-facing view of a host-owned shared context factory.

## IModuleModel

```csharp
interface Fabricators.Infrastructure.Persistence.IModuleModel
```

A module's contribution to a shared DbContext model. The module states its own configurations here, typically modelBuilder.ApplyConfigurationsFromAssembly(typeof(MyModule).Assembly), so the context never scans an assembly it was not handed.

## IModuleModelContext

```csharp
interface Fabricators.Infrastructure.Persistence.IModuleModelContext
```

Expose the same immutable model set used by OnModelCreating.

## ModuleDbContextFactory

```csharp
class Fabricators.Infrastructure.Persistence.ModuleDbContextFactory<TContext> where TContext : Microsoft.EntityFrameworkCore.DbContext
```

Summary not yet documented.

## ModuleModelCacheKeyFactory

```csharp
class Fabricators.Infrastructure.Persistence.ModuleModelCacheKeyFactory
```

Partitions EF models by context type, ordered composition and design time.

## ModuleModelContribution

```csharp
record Fabricators.Infrastructure.Persistence.ModuleModelContribution
```

Trusted model identity; revision changes whenever its mapping changes.

## ModuleModelExtensions

```csharp
class Fabricators.Infrastructure.Persistence.ModuleModelExtensions
```

Summary not yet documented.

## ModuleModelSet

```csharp
class Fabricators.Infrastructure.Persistence.ModuleModelSet
```

An ordered model snapshot and its deterministic, process-independent key.

## ModulePersistenceRegistration

```csharp
class Fabricators.Infrastructure.Persistence.ModulePersistenceRegistration
```

Summary not yet documented.

## PersistenceServiceCollectionExtensions

```csharp
class Fabricators.Infrastructure.Persistence.PersistenceServiceCollectionExtensions
```

Summary not yet documented.

## ApiKeyGenerator

```csharp
class Fabricators.Infrastructure.Security.ApiKeyGenerator
```

Summary not yet documented.

## ApiKeyMaintenance

```csharp
class Fabricators.Infrastructure.Security.ApiKeyMaintenance
```

Refresh and audit-flush operations used by the host lifecycle.

## ApiKeyManager

```csharp
class Fabricators.Infrastructure.Security.ApiKeyManager
```

Summary not yet documented.

## ApiKeyProviderOptions

```csharp
class Fabricators.Infrastructure.Security.ApiKeyProviderOptions
```

Summary not yet documented.

## ApiKeyServiceCollectionExtensions

```csharp
class Fabricators.Infrastructure.Security.ApiKeyServiceCollectionExtensions
```

Summary not yet documented.

## ApiKeySnapshotCache

```csharp
class Fabricators.Infrastructure.Security.ApiKeySnapshotCache
```

In-memory API-key resolver. Hydration is explicit and must succeed before a host starts serving requests. A failed later refresh may use the last good snapshot only until Fabricators.Infrastructure.Security.ApiKeyProviderOptions.MaximumStaleAge; resolution then fails closed.

## Argon2idPasswordHasher

```csharp
class Fabricators.Infrastructure.Security.Argon2idPasswordHasher
```

Argon2id password hasher, OWASP's first choice, at the parameters the IC backend already runs: m=19456 (19 MiB), t=2, p=1, a 16-byte salt drawn per call and a 32-byte digest. Stored format is the PHC string the Argon2 reference defines, which the library encodes and decodes for us: $argon2id$v=19$m=19456,t=2,p=1$<base64 salt>$<base64 hash> The parameters are part of the stored value on purpose. IC's own format is base64(salt):base64(hash), which records nothing about how the digest was produced, and that makes Fabricators.Application.Security.PasswordVerification.SuccessRehashNeeded undecidable: a verifier cannot tell a digest made under today's cost from one made under a weaker cost it is supposed to replace, so cost can never be raised on a running system without a reset mail. Recording them turns that into a comparison. The two formats do not interoperate, so a product carrying IC's stored hashes needs a legacy verification branch before it can adopt this one.

## ChannelApiKeyUsageSink

```csharp
class Fabricators.Infrastructure.Security.ChannelApiKeyUsageSink
```

Bounded, non-blocking buffer for last-used observations. The request path never waits for persistence; dropped observations are counted for health reporting instead of being hidden.

## ApiConsumerConfiguration

```csharp
class Fabricators.Infrastructure.Security.Persistence.ApiConsumerConfiguration
```

Consumer-owned EF configuration. Apply it from the product DbContext so the product owns the resulting migration chain.

## ApiKeyRecordConfiguration

```csharp
class Fabricators.Infrastructure.Security.Persistence.ApiKeyRecordConfiguration
```

Consumer-owned EF configuration for hashed API-key metadata.

## EfApiConsumerStore

```csharp
class Fabricators.Infrastructure.Security.Persistence.EfApiConsumerStore<TContext> where TContext : Microsoft.EntityFrameworkCore.DbContext
```

Summary not yet documented.

## EfUserSessionStore

```csharp
class Fabricators.Infrastructure.Security.Persistence.EfUserSessionStore<TContext> where TContext : Microsoft.EntityFrameworkCore.DbContext
```

The refresh-family store over EF Core. Every decision the port describes as a compare-and-set is one, expressed as a conditional set-based UPDATE whose affected count is the decision: no path reads a row, decides in memory, and writes back. One ordering rule holds the whole thing together, and it is invisible in any single statement. Both revocation paths and Fabricators.Infrastructure.Security.Persistence.EfUserSessionStore`1.TryAddAsync(Fabricators.Application.Security.RefreshSessionRecord,System.Int32,System.Threading.CancellationToken) take the counter row's write lock as their first statement, before touching a session row. Reversed, a revocation could stamp the family rows, block on the counter, and let a login that read the old version insert a live row into the family it just killed. The counter row is therefore the per-user serialisation point, which is also why the no-op looking counter UPDATE at the top of Fabricators.Infrastructure.Security.Persistence.EfUserSessionStore`1.RevokeAsync(System.String,System.Nullable{System.Guid},System.DateTimeOffset,System.Boolean,System.Threading.CancellationToken) is load-bearing and must not be optimised away. A useful side effect on providers that promote a transaction's first write to an exclusive lock: the transaction never has to upgrade a read lock, so the classic deferred-upgrade deadlock cannot arise here. Fabricators.Infrastructure.Security.Persistence.EfUserSessionStore`1.TryRedeemAsync(System.String,System.DateTimeOffset,System.Threading.CancellationToken) is the deliberate exception. It neither reads nor writes the counter, so it takes no counter lock and rotations on one user do not serialise against each other. Its own compare-and-set is over the whole redeemable condition, so a row revoked between resolution and update is never rotated.

## RefreshSessionRecordConfiguration

```csharp
class Fabricators.Infrastructure.Security.Persistence.RefreshSessionRecordConfiguration
```

Consumer-owned EF configuration for rotating refresh-token families. Apply it from the product DbContext so the product owns the resulting migration chain. The unique index on the token hash is a correctness requirement and not a lookup optimisation: IUserSessionStore.TryRedeemAsync resolves a row by hash alone, so without it the store can consume an arbitrary row and revoke the wrong family. The four instants are mapped as System.DateTimeOffset, which SQL Server and PostgreSQL compare natively. A provider that cannot translate a System.DateTimeOffset comparison needs a value converter to a sortable primitive (UtcTicks as a long, plus a nullable counterpart for UsedUtc and RevokedUtc) layered on top of this configuration; without one the compare-and-set in Fabricators.Infrastructure.Security.Persistence.EfUserSessionStore`1 fails at query-translation time rather than at runtime. SQLite is the known case, and the foundation's own test fixture applies exactly that converter. The tick column is not shipped here because it would let one provider's limitation pick an unreadable column type for every consumer.

## UserSessionCounter

```csharp
class Fabricators.Infrastructure.Security.Persistence.UserSessionCounter
```

The per-user session counter, stamped into an access token and moved by revocation. It lives here rather than beside RefreshSessionRecord in the application package because nothing crosses IUserSessionStore carrying it: the port speaks in System.Int32, so the row is this adapter's storage shape and not an application concept. The store is its sole owner, as the port requires. Anything else writing it breaks the only property that makes revocation work inside an access token's TTL, because the value stamped into a token stops matching the value revocation moves. Keyed on the product's user id in its canonical string form, which is what lets the foundation own the row without knowing the product's user entity.

## UserSessionCounterConfiguration

```csharp
class Fabricators.Infrastructure.Security.Persistence.UserSessionCounterConfiguration
```

Consumer-owned EF configuration for the session counter. It shares a database with Fabricators.Infrastructure.Security.Persistence.RefreshSessionRecordConfiguration by requirement, not by convenience: the counter and the session rows have to be reachable from one transaction, or a revocation can kill a family without moving the counter and leave the access token issued from it valid for the rest of its TTL.

## RefreshTokenGenerator

```csharp
class Fabricators.Infrastructure.Security.RefreshTokenGenerator
```

Mints opaque refresh tokens from 256 bits of CSPRNG output, the floor Fabricators.Application.Security.IRefreshTokenGenerator states and the secret size Fabricators.Infrastructure.Security.ApiKeyGenerator already uses. The value carries no structure at all, not even a prefix: a token that validates itself would keep authenticating after its row was revoked, which is what family revocation exists to prevent, and there is no lookup here that a prefix could serve.

## Sha256ApiKeyHasher

```csharp
class Fabricators.Infrastructure.Security.Sha256ApiKeyHasher
```

Hashes high-entropy API keys with SHA-256. API keys are 256 bits of CSPRNG output, not human passwords: a slow password KDF adds request-path cost without improving resistance to guessing, while preventing O(1) lookup by hash. Retrieved hashes are still compared in fixed time.

## Sha256RefreshTokenHasher

```csharp
class Fabricators.Infrastructure.Security.Sha256RefreshTokenHasher
```

Hashes refresh tokens with SHA-256, the same digest and the same lowercase hex shape as Fabricators.Infrastructure.Security.Sha256ApiKeyHasher. A fast digest is the right choice for the same reason it is there: a refresh token is 256 bits of CSPRNG output and not a human password, so a slow KDF would add cost to every rotation without improving resistance to guessing, and would make lookup by hash impossible.

## UserSessionServiceCollectionExtensions

```csharp
class Fabricators.Infrastructure.Security.UserSessionServiceCollectionExtensions
```

Summary not yet documented.
