brk.Framework.CQRS.Contracts
1.1.1
dotnet add package brk.Framework.CQRS.Contracts --version 1.1.1
NuGet\Install-Package brk.Framework.CQRS.Contracts -Version 1.1.1
<PackageReference Include="brk.Framework.CQRS.Contracts" Version="1.1.1" />
<PackageVersion Include="brk.Framework.CQRS.Contracts" Version="1.1.1" />
<PackageReference Include="brk.Framework.CQRS.Contracts" />
paket add brk.Framework.CQRS.Contracts --version 1.1.1
#r "nuget: brk.Framework.CQRS.Contracts, 1.1.1"
#:package brk.Framework.CQRS.Contracts@1.1.1
#addin nuget:?package=brk.Framework.CQRS.Contracts&version=1.1.1
#tool nuget:?package=brk.Framework.CQRS.Contracts&version=1.1.1
brk.Framework.CQRS.Contracts
The contracts (abstractions) package for the CQRS Framework.
Contains all interfaces, result types, and base definitions required to implement CQRS patterns in .NET applications.
Use this package when you want to define commands, queries, and handlers without depending on the full Application layer.
Features
Command Abstractions
ICommand– Non-generic command marker interfaceICommand<TOut>– Generic command with return typeICommandHandler<T>– Handler for commands without return valueICommandHandler<T, TOut>– Handler for commands with return value
Query Abstractions
IQuery<TOut>– Query marker interface with return typeIQueryHandler<TQuery, TOut>– Handler contract for queries
Dispatcher Abstractions
ICommandDispatcher– Interface for command dispatchingIQueryDispatcher– Interface for query dispatching
Standardized Results
CommandResult/CommandResult<T>– Unified command execution resultsQueryResult/QueryResult<T>– Unified query execution results- Support for success, info, warning, and error states
- Built-in factory methods for easy result creation
Why Use This Package?
- Decouple Contracts from Implementation – Keep your command/query definitions in a separate assembly, enabling clean architecture patterns.
- Lightweight – No external dependencies beyond .NET base libraries.
- Framework-Agnostic – Can be used with any DI container or hosting model.
- Extensible – Build your own dispatchers, handlers, or results while maintaining compatibility.
Installation
dotnet add package brk.Framework.CQRS.Contracts
| Product | Versions 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. |
-
net10.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on brk.Framework.CQRS.Contracts:
| Package | Downloads |
|---|---|
|
brk.Framework.CQRS.Application
A lightweight CQRS framework for .NET with base handlers, dispatchers, logging, and DI support |
GitHub repositories
This package is not used by any popular GitHub repositories.