Skip to main content
Table of Contents

Namespace Microsoft.Extensions.DependencyInjection

Classes

ApiKeyAuthenticationExtensions

Authentication-builder extensions for the Stratara API-key scheme and the auth-scheme selector. API keys are just another ASP.NET Core scheme — the provider seam is the scheme, not a custom abstraction — so they compose with cookies, bearer tokens, and OIDC handlers.

AuthorizationServiceCollectionExtensions

DI extensions that wrap IMediator with an authorization decorator.

AuthorizingCommandOutboxDispatcherServiceCollectionExtensions

Service-collection extensions that wrap the default ICommandOutboxDispatcher with Stratara.Infrastructure.Authorization.AuthorizingCommandOutboxDispatcher, enforcing RequireRoleAttribute and RequirePermissionAttribute checks on every enqueued command (permission enforcement activates when an IPermissionResolver is registered).

AzureServiceBusServiceCollectionExtensions

Service-collection extensions for wiring Azure Service Bus as the Stratara IMessageBus implementation.

BackgroundTaskExtensions

Service-collection extensions that wire the in-process background-task queue and its drain worker.

CachingServiceCollectionExtensions

DI helpers for wiring the Redis cache used by the Stratara framework.

CommandAuditServiceCollectionExtensions

Service-collection extensions for the Stratara command-audit pipeline behavior.

EventSourcingServiceCollectionExtensions

Service-collection extensions for the Stratara event-sourcing runtime and the event-stream hashing worker.

EventUpcasterServiceCollectionExtensions

DI extensions that register IEventUpcaster implementations and the IEventUpcasterPipeline that the event-mapping layer consumes on read.

ExternalLoginProvisioningExtensions

DI extensions for hardened JIT external-login provisioning — creating or linking a local ASP.NET Identity account on a user's first OpenID Connect sign-in.

IdentityDirectoryServiceCollectionExtensions

DI extensions that register the Stratara identity-directory plane: the EF-backed tenant membership store, the membership-backed authorization provider, and the membership-backed cross-tenant authorizer.

IdentityServiceCollectionExtensions

Service-collection extensions for the session-backed identity adapters (ITenantService and ICurrentUserService).

InfrastructureSecurityServiceCollectionExtensions

Service-collection extensions for the Stratara security primitives (secure JSON serializer + blob encryption + key store).

IntegrityServiceCollectionExtensions

Service-collection extensions that wire HMAC integrity protection for bus envelopes.

MappingServiceCollectionExtensions

Dependency-injection helpers that register Stratara's mapping primitives (event-stream entry to IEvent conversion) into an IServiceCollection.

MediatorServiceCollectionExtensions

DI extensions that register the Stratara mediator + pipeline behaviors + handler discovery.

MediatorWorkerServiceCollectionExtensions

Service-collection extensions for the Stratara mediator-command worker.

MembershipClaimsServiceCollectionExtensions

DI extensions that wire the sign-in claims bridge: the stratara:tenant_id claim is resolved from the user's tenant membership and surfaced on the principal, where Stratara's session-context middleware picks it up. Two modes — stamp at issuance (AddMembershipTenantClaim<TUser>(IServiceCollection)) or resolve per request (AddMembershipTenantClaimsTransformation(IServiceCollection)).

MessagingServiceCollectionExtensions

Service-collection extensions for the Stratara messaging stack.

NpgsqlDbContextServiceCollectionExtensions

Service-collection extensions that register Npgsql-backed IDbContextFactory<TContext> instances for the Stratara write, read, and identity stores with snake_case naming, pgvector support, and a reduced connection-pool cap suitable for multi-tenant hosts.

OpenIdConnectAuthenticationExtensions

Authentication-builder extensions for external identity providers — the interactive OpenID Connect sign-in flow and API JWT-bearer validation. Both are ordinary ASP.NET Core schemes (the provider seam is the scheme), so they compose with the cookie, API-key, and membership wiring already in this package. Entra, Keycloak, and generic OIDC differ only in configuration.

OutboxServiceCollectionExtensions

Service-collection extensions for the Stratara outbox + projection-replay stack.

PermissionPolicyServiceCollectionExtensions

DI extensions that surface the Stratara permission catalog as ASP.NET Core authorization policies, so HTTP endpoints gate on the same permission vocabulary as the mediator and the outbox dispatcher.

ProjectionServiceCollectionExtensions

Dependency-injection extension methods that wire the Stratara projection runtime (manager, handler, method invoker, worker, replay worker) and discover IProjection implementations by assembly scan.

ResilienceBehaviorServiceCollectionExtensions

DI extension that hooks Stratara's named Polly resilience pipelines into the in-process mediator pipeline via an opt-in, per-request behavior.

ResilienceServiceCollectionExtensions

DI extensions for Stratara's named Polly resilience pipelines.

SagaServiceCollectionExtensions

Service-collection extensions for the Stratara saga runtime.

SecurityServiceCollectionExtensions

DI extensions for the Stratara.Security key store + envelope encryption primitives.

SessionServiceCollectionExtensions

DI extensions for Stratara's session-context provider.

StrataraHealthCheckExtensions

Health-check registration extensions for the Stratara event-sourcing write store: outbox-backlog depth and event-store connectivity. Both are opt-in — a consumer adds them to its existing IHealthChecksBuilder so no health dependency is forced on hosts that do not want one.

StrataraProblemDetailsServiceCollectionExtensions

Registers the mapping from Stratara's own failure types to RFC 7807 problem responses.

TenantIsolationServiceCollectionExtensions

DI extensions that register the Stratara tenant-isolation pipeline behavior.

TestEventStoreServiceCollectionExtensions

Wires the real Stratara event-sourcing write stack against a shared in-memory SQLite database, using the in-memory doubles from Stratara.Testing for the cross-cutting dependencies.

TrustedTypeResolverServiceCollectionExtensions

DI extensions that register the ITrustedTypeResolver singleton and populate it with command / event / aggregate types discovered by assembly scanning.

ValidationServiceCollectionExtensions

DI extensions that register the Stratara validation pipeline behavior and discover IValidator<T> implementations.

WriteStoreServiceCollectionExtensions

Service-collection extensions for the Stratara write store.