Stratara.Abstractions 4.7.1

Prefix Reserved
dotnet add package Stratara.Abstractions --version 4.7.1
                    
NuGet\Install-Package Stratara.Abstractions -Version 4.7.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Stratara.Abstractions" Version="4.7.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Stratara.Abstractions" Version="4.7.1" />
                    
Directory.Packages.props
<PackageReference Include="Stratara.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Stratara.Abstractions --version 4.7.1
                    
#r "nuget: Stratara.Abstractions, 4.7.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Stratara.Abstractions@4.7.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Stratara.Abstractions&version=4.7.1
                    
Install as a Cake Addin
#tool nuget:?package=Stratara.Abstractions&version=4.7.1
                    
Install as a Cake Tool

Stratara.Abstractions

Derived. The behaviour described here is specified under openspec/specs/. Those specifications are the source; this page explains and illustrates them.

License: MIT.

Contract interfaces and wire-level POCO records for the Stratara framework. Library-safe — depends only on Microsoft.Extensions.DependencyInjection.Abstractions, Microsoft.Extensions.Logging.Abstractions, and Stratara.Contracts. No EF Core or message-bus runtime.

Use this when you need to reference Stratara types without pulling in any concrete implementation (Mediator runtime, EF Core, RabbitMQ, etc.). Typical consumers: handler/projection libraries that ship without a host.

Contents

  • Stratara.Abstractions.Mediator — IMediator, IRequest, IRequest<T>, ICommand, ICommand<T>, IQuery<T>, ICommandHandler<T>, IQueryHandler<T,R>, IPipelineBehavior<T>, IPipelineBehavior<T,R>, IAggregateScopedCommand.
  • Stratara.Abstractions.EventSourcing — IAggregationService, IEventSource, IEventStreamRepository, ISnapshotRepository, IEvent, IEvent<T>, IAggregateCreationEvent, IChangeSetHandler, EventChainAnchor, EventSubject, ConcurrencyException. Plus wire-types: EventStreamEntry, Snapshot.
  • Stratara.Abstractions.Persistence — IUnitOfWork, IWriteUnitOfWork, IReadUnitOfWork, ITransaction, IDbResolver.
  • Stratara.Abstractions.Outbox — ICommandOutboxDispatcher, IEventBundleOutboxDispatcher, IOutboxRepository. Plus wire-type OutboxEntry.
  • Stratara.Abstractions.Messaging — IMessageBus, IMessagingIdentifier, IEventBusConsumer, IEventBusPublisher.
  • Stratara.Abstractions.Session — ISessionContextProvider.
  • Stratara.Abstractions.Multitenancy — ITenantService, ICurrentUserService, ITenantScopedRequest, ICrossTenantAuthorizer, TenantAccessDeniedException, ITenantMembershipStore. Plus wire-types: TenantMembership, MembershipStatus.
  • Stratara.Abstractions.Projections — IProjectionReplayState. Plus wire-types: ReplayProgress, ReplayOutcome, ReplayCompletion, ReplayResult.
  • Stratara.Abstractions.Security — IEncryptionFactory, IKeyStore, IMasterKeyProvider, ISecureBlobEncryptor, ISecureJsonSerializer. Plus wire-types: KeyScope, KeyMaterial, EncryptedData, DataSensitivityLevel, EncryptDataAttribute.
  • Stratara.Abstractions.Validation — IValidator<T>, ValidationResult, ValidationFailure, ValidationSeverity, StrataraValidationException.
  • Stratara.Abstractions.Entities — IEntity, IBucket, IHasRowVersion, IMultiTenant, ITenantEntity, IUserIdentity.
  • Stratara.Abstractions.BackgroundTasks — IBackgroundTaskQueue. Plus wire-types: BackgroundTaskInfo, BackgroundTaskStatus.
  • Stratara.Abstractions.Commands — IUpdateCommand.
  • Stratara.Abstractions.Authorization — RequireRoleAttribute, RequirePermissionAttribute, IAuthorizationProvider, IPermissionResolver, PermissionCatalog, AuthorizationException, PermissionAuthorizationException.
  • Stratara.Abstractions.Settings — ISettingProvider, ISettingStore, SettingCatalog. Plus wire-types: SettingDefinition, SettingScope.
  • Stratara.Abstractions.ApiKeys — IApiKeyStore. Plus wire-types: ApiKeyDescriptor, ApiKeyIssueRequest, IssuedApiKey.

Why split

NuGet consumers without an event-sourcing host can adopt Stratara's CQRS contracts and authorization model without dragging in EF Core, RabbitMQ, or the WriteStore.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (14)

Showing the top 5 NuGet packages that depend on Stratara.Abstractions:

Package Downloads
Stratara.Sessions

ASP.NET Core middleware and provider for Stratara's Actor/Subject session model. Reads tenant and user from JWT claims (or X-Tenant-Id / X-Client-Id headers) and populates the ambient ISessionContextProvider for every request.

Stratara.Domain

Concrete domain types for the Stratara framework — the Tenant aggregate and its lifecycle events. Stratara's opinionated multitenancy model.

Stratara.Resilience

Polly-based named resilience pipelines pre-wired for the Stratara framework's messaging and command/event dispatch paths. Four named pipelines registered via AddResiliencePipelines().

Stratara.Shared

Umbrella package for the Stratara framework — source-generated logger extensions for command flows, domain-event helpers, merge primitives, and the Tier-A/B abstractions surface re-exported as one transitive bundle.

Stratara.Mediator

In-process mediator with DI-resolved handlers and pipeline behaviors for the Stratara framework. MediatR-style routing via typed wrapper cache, plus an authorizing decorator and a bucket-lock concurrency primitive.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.7.1 121 11/5/2026
4.7.0 772 10/30/2026
4.6.1 319 10/29/2026
4.6.0 407 10/28/2026
4.5.0 496 10/28/2026
4.4.10 422 10/26/2026
4.4.9 329 10/26/2026
4.4.8 471 10/24/2026
4.4.7 337 10/23/2026
4.4.6 450 10/22/2026
4.4.5 869 10/14/2026
4.4.4 588 10/10/2026
4.4.3 313 10/10/2026
4.4.2 683 10/2/2026
4.4.1 633 9/29/2026
4.4.0 371 9/27/2026
4.3.1 427 9/25/2026
4.3.0 606 9/23/2026
4.2.0 380 9/18/2026
4.1.1 378 9/16/2026
Loading failed

A patch for the shared identity store: single roles of a membership can now change without losing a concurrent
change, and a fresh store's first migration no longer logs a spurious error.

### Added

- **`ITenantMembershipStore.AddRolesAsync` and `RemoveRolesAsync`** give or take single roles of one membership,
 leaving its other roles and its status as they are, and return the membership afterwards (`null` where there is
 none — neither creates one). On the framework's stores two overlapping role changes to the same membership both
 take effect; a store that keeps losing to concurrent writers throws `InvalidOperationException` instead of dropping
 the change. No schema change. Both are default interface methods, so a store you implemented yourself keeps
 compiling and gets them as a read followed by a whole write — without protection against a concurrent writer.
 `TenantMembership.WithRolesAdded` and `WithRolesRemoved` compute the changed role set.

### Fixed

- **`MigrateStrataraIdentityStoreAsync()` no longer logs an `Error` on a fresh database.** The first migration of an
 empty identity store logged a failed read of its migration history table from
 `Microsoft.EntityFrameworkCore.Database.Command`, although the migration then succeeded. The database, the schema and
 the history table are now created before the migrations run, so a first start logs nothing at `Error` or above —
 also when several hosts start against an empty store at once.