CascadeEsdm.Commands.Abstractions 1.0.0-beta.12

This is a prerelease version of CascadeEsdm.Commands.Abstractions.
This package has a SemVer 2.0.0 package version: 1.0.0-beta.12+883e346.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package CascadeEsdm.Commands.Abstractions --version 1.0.0-beta.12
                    
NuGet\Install-Package CascadeEsdm.Commands.Abstractions -Version 1.0.0-beta.12
                    
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="CascadeEsdm.Commands.Abstractions" Version="1.0.0-beta.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CascadeEsdm.Commands.Abstractions" Version="1.0.0-beta.12" />
                    
Directory.Packages.props
<PackageReference Include="CascadeEsdm.Commands.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 CascadeEsdm.Commands.Abstractions --version 1.0.0-beta.12
                    
#r "nuget: CascadeEsdm.Commands.Abstractions, 1.0.0-beta.12"
                    
#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 CascadeEsdm.Commands.Abstractions@1.0.0-beta.12
                    
#: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=CascadeEsdm.Commands.Abstractions&version=1.0.0-beta.12&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CascadeEsdm.Commands.Abstractions&version=1.0.0-beta.12&prerelease
                    
Install as a Cake Tool

Cascade.Commands.Abstractions

Command abstractions for the Cascade Event Sourcing framework.

Overview

This package provides interfaces and base types for implementing the Command pattern in event-sourced systems. It defines contracts for command handlers, command validation, and command execution without coupling to specific implementations.

Key Interfaces

  • ICommand: Marker interface for commands
  • ICommandHandler<TCommand>: Interface for command handlers
  • ICommandValidator<TCommand>: Interface for command validation
  • ICommandBus: Interface for command dispatching
  • Command Results: Abstractions for command execution results

Installation

dotnet add package Cascade.Commands.Abstractions

Usage

Defining a Command

using Cascade.Commands;

public record PlaceOrderCommand(OrderId OrderId, CustomerId CustomerId) : ICommand;

Defining a Command Handler

public interface IPlaceOrderHandler : ICommandHandler<PlaceOrderCommand>
{
    Task<CommandResult> HandleAsync(PlaceOrderCommand command, CancellationToken cancellationToken);
}

Command Validation

public interface IPlaceOrderValidator : ICommandValidator<PlaceOrderCommand>
{
    Task<ValidationResult> ValidateAsync(PlaceOrderCommand command);
}

Dependencies

  • Cascade.SharedKernel.Abstractions
  • Cascade.Commands: Concrete command handling implementation
  • Cascade.SharedKernel: Core domain model support

Documentation

For complete documentation and examples, visit: https://github.com/tsgenge/cascade

License

BSD 3-Clause License - see LICENSE file for details

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated