On this page
Fabricators.Infrastructure
Public .NET API signatures and documentation coverage.
Generated from compiled public metadata. Missing summaries are explicitly reported in catalog.json.
.ctor
public Fabricators.Infrastructure.Caching.FusionCacheService.FusionCacheService(ZiggyCreatures.Caching.Fusion.IFusionCache cache)Summary not yet documented.
GetOrDefaultAsync
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
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
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
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
public Fabricators.Infrastructure.DomainEvents.DomainEventsDispatcher.DomainEventsDispatcher(System.IServiceProvider serviceProvider)Summary not yet documented.
DispatchAsync
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
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Fabricators.Infrastructure.DomainEvents.DomainEventsServiceCollectionExtensions.AddDomainEventsDispatcher(Microsoft.Extensions.DependencyInjection.IServiceCollection services)Summary not yet documented.
DispatchAsync
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
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
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
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
public System.Threading.Tasks.Task<TEntity?> Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.AddAsync(TEntity resource, System.Threading.CancellationToken cancellationToken)Summary not yet documented.
FirstOrDefaultAsync
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
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
protected void Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.LogDeleteError(System.Exception ex)Summary not yet documented.
LogUpdateError
protected void Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.LogUpdateError(System.Exception ex)Summary not yet documented.
SaveChangesAndDispatchAsync
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
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
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
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
void Fabricators.Infrastructure.Persistence.IModuleModel.Configure(Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder)Summary not yet documented.
.ctor
public Fabricators.Infrastructure.Persistence.ModuleDbContextFactory<TContext>.ModuleDbContextFactory(Microsoft.EntityFrameworkCore.IDbContextFactory<TContext> factory)Summary not yet documented.
CreateDbContextAsync
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
public Fabricators.Infrastructure.Persistence.ModuleModelCacheKeyFactory.ModuleModelCacheKeyFactory()Summary not yet documented.
Create
public object Fabricators.Infrastructure.Persistence.ModuleModelCacheKeyFactory.Create(Microsoft.EntityFrameworkCore.DbContext context, bool designTime)Summary not yet documented.
.ctor
public Fabricators.Infrastructure.Persistence.ModuleModelContribution.ModuleModelContribution(string Id, string Revision, Fabricators.Infrastructure.Persistence.IModuleModel Model)Summary not yet documented.
Deconstruct
public void Fabricators.Infrastructure.Persistence.ModuleModelContribution.Deconstruct(out string Id, out string Revision, out Fabricators.Infrastructure.Persistence.IModuleModel Model)Summary not yet documented.
Equals
public bool Fabricators.Infrastructure.Persistence.ModuleModelContribution.Equals(Fabricators.Infrastructure.Persistence.ModuleModelContribution? other)Summary not yet documented.
Equals
public override bool Fabricators.Infrastructure.Persistence.ModuleModelContribution.Equals(object? obj)Summary not yet documented.
GetHashCode
public override int Fabricators.Infrastructure.Persistence.ModuleModelContribution.GetHashCode()Summary not yet documented.
ToString
public override string Fabricators.Infrastructure.Persistence.ModuleModelContribution.ToString()Summary not yet documented.
op_Equality
public static bool Fabricators.Infrastructure.Persistence.ModuleModelContribution.operator ==(Fabricators.Infrastructure.Persistence.ModuleModelContribution? left, Fabricators.Infrastructure.Persistence.ModuleModelContribution? right)Summary not yet documented.
op_Inequality
public static bool Fabricators.Infrastructure.Persistence.ModuleModelContribution.operator !=(Fabricators.Infrastructure.Persistence.ModuleModelContribution? left, Fabricators.Infrastructure.Persistence.ModuleModelContribution? right)Summary not yet documented.
$
public Fabricators.Infrastructure.Persistence.ModuleModelContribution Fabricators.Infrastructure.Persistence.ModuleModelContribution.<Clone>$()Summary not yet documented.
ApplyModuleModels
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
public Fabricators.Infrastructure.Persistence.ModuleModelSet.ModuleModelSet(System.Collections.Generic.IEnumerable<Fabricators.Infrastructure.Persistence.ModuleModelContribution> contributions, string modelVariant = "")Summary not yet documented.
ApplyTo
public void Fabricators.Infrastructure.Persistence.ModuleModelSet.ApplyTo(Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder)Summary not yet documented.
AddFoundationModuleDbContext
public static Microsoft.Extensions.DependencyInjection.IServiceCollection Fabricators.Infrastructure.Persistence.ModulePersistenceRegistration.AddFoundationModuleDbContext<TContext>(Microsoft.Extensions.DependencyInjection.IServiceCollection services) where TContext : Microsoft.EntityFrameworkCore.DbContextSummary not yet documented.
UseFoundationModuleModelCache
public static Microsoft.EntityFrameworkCore.DbContextOptionsBuilder Fabricators.Infrastructure.Persistence.ModulePersistenceRegistration.UseFoundationModuleModelCache(Microsoft.EntityFrameworkCore.DbContextOptionsBuilder options)Summary not yet documented.
UseFoundationModuleModelCache
public static Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<TContext> Fabricators.Infrastructure.Persistence.ModulePersistenceRegistration.UseFoundationModuleModelCache<TContext>(Microsoft.EntityFrameworkCore.DbContextOptionsBuilder<TContext> options) where TContext : Microsoft.EntityFrameworkCore.DbContextSummary not yet documented.
AddEfBatchUpserter
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 : notnullSummary not yet documented.
.ctor
public Fabricators.Infrastructure.Security.ApiKeyGenerator.ApiKeyGenerator()Summary not yet documented.
Generate
public Fabricators.Application.Security.GeneratedApiKey Fabricators.Infrastructure.Security.ApiKeyGenerator.Generate(string consumerPrefix)Summary not yet documented.
.ctor
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
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeyMaintenance.FlushUsageAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Summary not yet documented.
InitializeAsync
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeyMaintenance.InitializeAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Summary not yet documented.
RefreshAsync
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeyMaintenance.RefreshAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Summary not yet documented.
RunOnceAsync
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeyMaintenance.RunOnceAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Summary not yet documented.
.ctor
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
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
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
public Fabricators.Infrastructure.Security.ApiKeyProviderOptions.ApiKeyProviderOptions()Summary not yet documented.
AddFabricatorsApiKeys
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.DbContextSummary not yet documented.
.ctor
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
public void Fabricators.Infrastructure.Security.ApiKeySnapshotCache.Dispose()Summary not yet documented.
InitializeAsync
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeySnapshotCache.InitializeAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Summary not yet documented.
InvalidateAsync
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeySnapshotCache.InvalidateAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Summary not yet documented.
RefreshAsync
public System.Threading.Tasks.Task Fabricators.Infrastructure.Security.ApiKeySnapshotCache.RefreshAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Summary not yet documented.
Resolve
public Fabricators.Kernel.Security.ApiKeyIdentity? Fabricators.Infrastructure.Security.ApiKeySnapshotCache.Resolve(string presentedKey)Summary not yet documented.
.ctor
public Fabricators.Infrastructure.Security.Argon2idPasswordHasher.Argon2idPasswordHasher()Summary not yet documented.
Hash
public string Fabricators.Infrastructure.Security.Argon2idPasswordHasher.Hash(string password)Summary not yet documented.
Verify
public Fabricators.Application.Security.PasswordVerification Fabricators.Infrastructure.Security.Argon2idPasswordHasher.Verify(string password, string expectedHash)Summary not yet documented.
.ctor
public Fabricators.Infrastructure.Security.ChannelApiKeyUsageSink.ChannelApiKeyUsageSink(Fabricators.Infrastructure.Security.ApiKeyProviderOptions options)Summary not yet documented.
Drain
public System.Collections.Generic.IReadOnlyDictionary<string, System.DateTimeOffset> Fabricators.Infrastructure.Security.ChannelApiKeyUsageSink.Drain(int maximumCount)Summary not yet documented.
Requeue
public void Fabricators.Infrastructure.Security.ChannelApiKeyUsageSink.Requeue(System.Collections.Generic.IReadOnlyDictionary<string, System.DateTimeOffset> observations)Summary not yet documented.
TryRecord
public bool Fabricators.Infrastructure.Security.ChannelApiKeyUsageSink.TryRecord(string keyId, System.DateTimeOffset usedUtc)Summary not yet documented.
.ctor
public Fabricators.Infrastructure.Security.Persistence.ApiConsumerConfiguration.ApiConsumerConfiguration(string schema = "security")Summary not yet documented.
Configure
public void Fabricators.Infrastructure.Security.Persistence.ApiConsumerConfiguration.Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<Fabricators.Application.Security.ApiConsumer> builder)Summary not yet documented.
.ctor
public Fabricators.Infrastructure.Security.Persistence.ApiKeyRecordConfiguration.ApiKeyRecordConfiguration(string schema = "security")Summary not yet documented.
Configure
public void Fabricators.Infrastructure.Security.Persistence.ApiKeyRecordConfiguration.Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<Fabricators.Application.Security.ApiKeyRecord> builder)Summary not yet documented.
.ctor
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
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
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
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
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
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
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
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
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
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
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
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
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
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
public Fabricators.Infrastructure.Security.Persistence.RefreshSessionRecordConfiguration.RefreshSessionRecordConfiguration(string schema = "security")Summary not yet documented.
Configure
public void Fabricators.Infrastructure.Security.Persistence.RefreshSessionRecordConfiguration.Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<Fabricators.Application.Security.RefreshSessionRecord> builder)Summary not yet documented.
.ctor
public Fabricators.Infrastructure.Security.Persistence.UserSessionCounter.UserSessionCounter(string userId)Summary not yet documented.
.ctor
public Fabricators.Infrastructure.Security.Persistence.UserSessionCounterConfiguration.UserSessionCounterConfiguration(string schema = "security")Summary not yet documented.
Configure
public void Fabricators.Infrastructure.Security.Persistence.UserSessionCounterConfiguration.Configure(Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<Fabricators.Infrastructure.Security.Persistence.UserSessionCounter> builder)Summary not yet documented.
.ctor
public Fabricators.Infrastructure.Security.RefreshTokenGenerator.RefreshTokenGenerator()Summary not yet documented.
Generate
public Fabricators.Application.Security.GeneratedRefreshToken Fabricators.Infrastructure.Security.RefreshTokenGenerator.Generate()Summary not yet documented.
.ctor
public Fabricators.Infrastructure.Security.Sha256ApiKeyHasher.Sha256ApiKeyHasher()Summary not yet documented.
Hash
public string Fabricators.Infrastructure.Security.Sha256ApiKeyHasher.Hash(string plaintext)Summary not yet documented.
Verify
public bool Fabricators.Infrastructure.Security.Sha256ApiKeyHasher.Verify(string plaintext, string expectedHash)Summary not yet documented.
.ctor
public Fabricators.Infrastructure.Security.Sha256RefreshTokenHasher.Sha256RefreshTokenHasher()Summary not yet documented.
Hash
public string Fabricators.Infrastructure.Security.Sha256RefreshTokenHasher.Hash(string token)Summary not yet documented.
AddFabricatorsUserSessions
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.DbContextSummary not yet documented.
Factory
protected Microsoft.EntityFrameworkCore.IDbContextFactory<TContext> Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.Factory { get; }Summary not yet documented.
Logger
protected Microsoft.Extensions.Logging.ILogger Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.Logger { get; }Summary not yet documented.
SetSelector
protected System.Func<TContext, Microsoft.EntityFrameworkCore.DbSet<TEntity>> Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext>.SetSelector { get; }Summary not yet documented.
DbSet
public System.Func<TDbContext, Microsoft.EntityFrameworkCore.DbSet<TEntity>> Fabricators.Infrastructure.Persistence.EfUpsertMap<TDbContext, TEntity, TKey>.DbSet { get; }Summary not yet documented.
KeySelectorExpr
public System.Linq.Expressions.Expression<System.Func<TEntity, TKey>> Fabricators.Infrastructure.Persistence.EfUpsertMap<TDbContext, TEntity, TKey>.KeySelectorExpr { get; }Summary not yet documented.
OnUpdate
public System.Action<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<TEntity>, TEntity>? Fabricators.Infrastructure.Persistence.EfUpsertMap<TDbContext, TEntity, TKey>.OnUpdate { get; }Summary not yet documented.
DbSet
System.Func<TDbContext, Microsoft.EntityFrameworkCore.DbSet<TEntity>> Fabricators.Infrastructure.Persistence.IEfUpsertMap<TDbContext, TEntity, TKey>.DbSet { get; }Summary not yet documented.
KeySelectorExpr
System.Linq.Expressions.Expression<System.Func<TEntity, TKey>> Fabricators.Infrastructure.Persistence.IEfUpsertMap<TDbContext, TEntity, TKey>.KeySelectorExpr { get; }Summary not yet documented.
OnUpdate
System.Action<Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry<TEntity>, TEntity>? Fabricators.Infrastructure.Persistence.IEfUpsertMap<TDbContext, TEntity, TKey>.OnUpdate { get; }Summary not yet documented.
ModuleModels
Fabricators.Infrastructure.Persistence.ModuleModelSet Fabricators.Infrastructure.Persistence.IModuleModelContext.ModuleModels { get; }Summary not yet documented.
Id
public string Fabricators.Infrastructure.Persistence.ModuleModelContribution.Id { get; init; }Summary not yet documented.
Model
public Fabricators.Infrastructure.Persistence.IModuleModel Fabricators.Infrastructure.Persistence.ModuleModelContribution.Model { get; init; }Summary not yet documented.
Revision
public string Fabricators.Infrastructure.Persistence.ModuleModelContribution.Revision { get; init; }Summary not yet documented.
Contributions
public System.Collections.Generic.IReadOnlyList<Fabricators.Infrastructure.Persistence.ModuleModelContribution> Fabricators.Infrastructure.Persistence.ModuleModelSet.Contributions { get; }Summary not yet documented.
Fingerprint
public string Fabricators.Infrastructure.Persistence.ModuleModelSet.Fingerprint { get; }Summary not yet documented.
MaximumActiveKeysPerConsumer
public int Fabricators.Infrastructure.Security.ApiKeyProviderOptions.MaximumActiveKeysPerConsumer { get; set; }Summary not yet documented.
MaximumKeyLifetime
public System.TimeSpan Fabricators.Infrastructure.Security.ApiKeyProviderOptions.MaximumKeyLifetime { get; set; }Summary not yet documented.
MaximumStaleAge
public System.TimeSpan Fabricators.Infrastructure.Security.ApiKeyProviderOptions.MaximumStaleAge { get; set; }Summary not yet documented.
RefreshInterval
public System.TimeSpan Fabricators.Infrastructure.Security.ApiKeyProviderOptions.RefreshInterval { get; set; }Summary not yet documented.
UsageBatchSize
public int Fabricators.Infrastructure.Security.ApiKeyProviderOptions.UsageBatchSize { get; set; }Summary not yet documented.
UsageChannelCapacity
public int Fabricators.Infrastructure.Security.ApiKeyProviderOptions.UsageChannelCapacity { get; set; }Summary not yet documented.
IsUsable
public bool Fabricators.Infrastructure.Security.ApiKeySnapshotCache.IsUsable { get; }Summary not yet documented.
LastRefreshError
public System.Exception? Fabricators.Infrastructure.Security.ApiKeySnapshotCache.LastRefreshError { get; }Summary not yet documented.
LastSuccessfulRefreshUtc
public System.DateTimeOffset? Fabricators.Infrastructure.Security.ApiKeySnapshotCache.LastSuccessfulRefreshUtc { get; }Summary not yet documented.
DroppedObservations
public long Fabricators.Infrastructure.Security.ChannelApiKeyUsageSink.DroppedObservations { get; }Summary not yet documented.
UserId
public string Fabricators.Infrastructure.Security.Persistence.UserSessionCounter.UserId { get; }Summary not yet documented.
Version
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
class Fabricators.Infrastructure.Caching.FusionCacheServiceSummary not yet documented.
DomainEventsDispatcher
class Fabricators.Infrastructure.DomainEvents.DomainEventsDispatcherDispatches events after persistence. Handlers are best-effort side effects: the database write has already committed when a handler runs or fails.
DomainEventsServiceCollectionExtensions
class Fabricators.Infrastructure.DomainEvents.DomainEventsServiceCollectionExtensionsSummary not yet documented.
IDomainEventsDispatcher
interface Fabricators.Infrastructure.DomainEvents.IDomainEventsDispatcherSummary not yet documented.
EfBatchUpserter
class Fabricators.Infrastructure.Persistence.EfBatchUpserter<TDbContext, TEntity, TKey> where TDbContext : Microsoft.EntityFrameworkCore.DbContext where TEntity : class where TKey : notnullSummary not yet documented.
EfRepositoryBase
class Fabricators.Infrastructure.Persistence.EfRepositoryBase<TEntity, TContext> where TEntity : class where TContext : Microsoft.EntityFrameworkCore.DbContextSummary not yet documented.
EfUpsertMap
class Fabricators.Infrastructure.Persistence.EfUpsertMap<TDbContext, TEntity, TKey> where TDbContext : Microsoft.EntityFrameworkCore.DbContext where TEntity : class where TKey : notnullSummary not yet documented.
IEfUpsertMap
interface Fabricators.Infrastructure.Persistence.IEfUpsertMap<TDbContext, TEntity, TKey> where TDbContext : Microsoft.EntityFrameworkCore.DbContext where TEntity : class where TKey : notnullSummary not yet documented.
IModuleDbContextFactory
interface Fabricators.Infrastructure.Persistence.IModuleDbContextFactoryA module-facing view of a host-owned shared context factory.
IModuleModel
interface Fabricators.Infrastructure.Persistence.IModuleModelA 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
interface Fabricators.Infrastructure.Persistence.IModuleModelContextExpose the same immutable model set used by OnModelCreating.
ModuleDbContextFactory
class Fabricators.Infrastructure.Persistence.ModuleDbContextFactory<TContext> where TContext : Microsoft.EntityFrameworkCore.DbContextSummary not yet documented.
ModuleModelCacheKeyFactory
class Fabricators.Infrastructure.Persistence.ModuleModelCacheKeyFactoryPartitions EF models by context type, ordered composition and design time.
ModuleModelContribution
record Fabricators.Infrastructure.Persistence.ModuleModelContributionTrusted model identity; revision changes whenever its mapping changes.
ModuleModelExtensions
class Fabricators.Infrastructure.Persistence.ModuleModelExtensionsSummary not yet documented.
ModuleModelSet
class Fabricators.Infrastructure.Persistence.ModuleModelSetAn ordered model snapshot and its deterministic, process-independent key.
ModulePersistenceRegistration
class Fabricators.Infrastructure.Persistence.ModulePersistenceRegistrationSummary not yet documented.
PersistenceServiceCollectionExtensions
class Fabricators.Infrastructure.Persistence.PersistenceServiceCollectionExtensionsSummary not yet documented.
ApiKeyGenerator
class Fabricators.Infrastructure.Security.ApiKeyGeneratorSummary not yet documented.
ApiKeyMaintenance
class Fabricators.Infrastructure.Security.ApiKeyMaintenanceRefresh and audit-flush operations used by the host lifecycle.
ApiKeyManager
class Fabricators.Infrastructure.Security.ApiKeyManagerSummary not yet documented.
ApiKeyProviderOptions
class Fabricators.Infrastructure.Security.ApiKeyProviderOptionsSummary not yet documented.
ApiKeyServiceCollectionExtensions
class Fabricators.Infrastructure.Security.ApiKeyServiceCollectionExtensionsSummary not yet documented.
ApiKeySnapshotCache
class Fabricators.Infrastructure.Security.ApiKeySnapshotCacheIn-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
class Fabricators.Infrastructure.Security.Argon2idPasswordHasherArgon2id 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$$ 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
class Fabricators.Infrastructure.Security.ChannelApiKeyUsageSinkBounded, 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
class Fabricators.Infrastructure.Security.Persistence.ApiConsumerConfigurationConsumer-owned EF configuration. Apply it from the product DbContext so the product owns the resulting migration chain.
ApiKeyRecordConfiguration
class Fabricators.Infrastructure.Security.Persistence.ApiKeyRecordConfigurationConsumer-owned EF configuration for hashed API-key metadata.
EfApiConsumerStore
class Fabricators.Infrastructure.Security.Persistence.EfApiConsumerStore<TContext> where TContext : Microsoft.EntityFrameworkCore.DbContextSummary not yet documented.
EfUserSessionStore
class Fabricators.Infrastructure.Security.Persistence.EfUserSessionStore<TContext> where TContext : Microsoft.EntityFrameworkCore.DbContextThe 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.EfUserSessionStore1.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.EfUserSessionStore1.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
class Fabricators.Infrastructure.Security.Persistence.RefreshSessionRecordConfigurationConsumer-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
class Fabricators.Infrastructure.Security.Persistence.UserSessionCounterThe 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
class Fabricators.Infrastructure.Security.Persistence.UserSessionCounterConfigurationConsumer-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
class Fabricators.Infrastructure.Security.RefreshTokenGeneratorMints 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
class Fabricators.Infrastructure.Security.Sha256ApiKeyHasherHashes 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
class Fabricators.Infrastructure.Security.Sha256RefreshTokenHasherHashes 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
class Fabricators.Infrastructure.Security.UserSessionServiceCollectionExtensionsSummary not yet documented.