The Apply(SomeEvent) parameter types of the assembly's aggregates
Adds only those event types to ITrustedTypeResolver — no aggregate types, no handler classes. For event-only hosts (projection/saga workers) that must deserialize bus/stream payloads without wiring handler dependencies
Security + integrity
Extension
What it does
services.AddStrataraFileKeyStore(configuration)
Registers the production file-backed EnvelopeFileKeyStore (KEK-wrapped, versioned per-KeyScope DEKs) + FileMasterKeyProvider + the AES-GCM ISecureBlobEncryptor. Lives in Stratara.Security (dependency-light). Call beforeAddSecurity() so it wins the TryAdd race.
services.AddSecurity()
Wires ISecureJsonSerializer ([EncryptData]), the AES-GCM blob encryptor, and a Development-onlyDummyKeyStore fallback (TryAdd, so a real IKeyStore registered first wins). Adds the KeyStoreStartupProbe fail-fast guard.
services.AddBusEnvelopeIntegrity(opts)
Opt-in HMAC signing of CommandEnvelope + EventBundle
Validation
Extension
What it does
services.AddStrataraValidation()
Registers the validation pipeline behavior. Call before other AddPipelineBehavior* so it runs outermost.
services.AddValidatorsFromAssemblyContaining<T>()
Discovers + registers every concrete IValidator<T> in the marker's assembly as scoped.
Tenant isolation
Extension
What it does
services.AddStrataraTenantIsolation()
Registers the tenant-isolation pipeline behavior. Acts only on requests implementing ITenantScopedRequest; rejects a request whose TenantId ≠ the session's data-owner tenant with TenantAccessDeniedException (→ HTTP 403). Call afterAddStrataraValidation().
Strict mode — additionally routes every cross-tenant operation (actor tenant ≠ data-owner tenant) through ICrossTenantAuthorizer. The shipped default denies all; register your own ICrossTenantAuthorizer to grant the cross-tenant case (e.g. a platform admin).
Resilience
Extension
What it does
services.AddResiliencePipelines()
Registers Polly named pipelines (Stratara.OutboxPublish, Stratara.HandlerRetry, …)
These three are extension members of IHostApplicationBuilder and live in the Microsoft.Extensions.Hosting namespace (Microsoft convention since v3.0.15).