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
                    
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="brk.Framework.CQRS.Contracts" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="brk.Framework.CQRS.Contracts" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="brk.Framework.CQRS.Contracts" />
                    
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 brk.Framework.CQRS.Contracts --version 1.1.1
                    
#r "nuget: brk.Framework.CQRS.Contracts, 1.1.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 brk.Framework.CQRS.Contracts@1.1.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=brk.Framework.CQRS.Contracts&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=brk.Framework.CQRS.Contracts&version=1.1.1
                    
Install as a Cake Tool

brk.Framework.CQRS.Contracts

NuGet NuGet Downloads

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 interface
    • ICommand<TOut> – Generic command with return type
    • ICommandHandler<T> – Handler for commands without return value
    • ICommandHandler<T, TOut> – Handler for commands with return value
  • Query Abstractions

    • IQuery<TOut> – Query marker interface with return type
    • IQueryHandler<TQuery, TOut> – Handler contract for queries
  • Dispatcher Abstractions

    • ICommandDispatcher – Interface for command dispatching
    • IQueryDispatcher – Interface for query dispatching
  • Standardized Results

    • CommandResult / CommandResult<T> – Unified command execution results
    • QueryResult / 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 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.
  • 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.

Version Downloads Last Updated
1.1.1 98 6/1/2026
1.1.0 92 6/1/2026
1.0.1 92 5/30/2026
1.0.0 101 5/30/2026