Anarchy.Toolkit.Core.Events 1.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Anarchy.Toolkit.Core.Events --version 1.1.1
                    
NuGet\Install-Package Anarchy.Toolkit.Core.Events -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="Anarchy.Toolkit.Core.Events" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Anarchy.Toolkit.Core.Events" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Anarchy.Toolkit.Core.Events" />
                    
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 Anarchy.Toolkit.Core.Events --version 1.1.1
                    
#r "nuget: Anarchy.Toolkit.Core.Events, 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 Anarchy.Toolkit.Core.Events@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=Anarchy.Toolkit.Core.Events&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Anarchy.Toolkit.Core.Events&version=1.1.1
                    
Install as a Cake Tool

Anarchy.Toolkit.Core.Events

Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Infrastructure · Layer: Core · Package catalog

In-process publish/subscribe and building blocks for a generic domain-event pipeline.

dotnet add package Anarchy.Toolkit.Core.Events
  • Implement ILocalEvent and ILocalEventHandler<T> and register the local bus with services.AddLocalEventBus().
  • Build domain-event processing around EventEnvelopeBase, Event, PersistedEvent, the processor, handler bus and EventEnvelopeParser.
  • The local bus is in-process; use a message-broker implementation for external delivery.

When to use it

Use the local bus to notify other components within the same process, or use the domain-event types to build an event processing pipeline. The local bus is not a durable queue: events are lost if the process stops, and it does not deliver across service instances.

How to use it

Register an Observer and the bus, then register each handler explicitly. For example, with an application-defined OrderPlaced : ILocalEvent and OrderPlacedHandler : ILocalEventHandler<OrderPlaced>:

using Anarchy.Toolkit.Core.Events.Extension.Microsoft.DependencyInjection;
using Anarchy.Toolkit.Core.Events.Service.Event.InMemory;
using Microsoft.Extensions.DependencyInjection;

services.AddLocalEventBus();
services.AddScoped<ILocalEventHandler<TransactionRolledback>, TransactionRolledbackHandler>();

// In a service that receives ILocalEventBus via DI:
await bus.PublishAsync(new TransactionRolledback(), absorbErrors: false, ct: cancellationToken);

Each publish resolves handlers in a new DI scope and awaits them sequentially. Handler exceptions are logged and absorbed by default; set absorbErrors: false to propagate the first failure. No registered handlers is a no-op. For external delivery, compose this package with a broker adapter instead.

See the toolkit overview and architecture guide.

Releases

1.1.1

  • docs(packages): identify each package's pillar and layer
  • build(packages): attribute the copyright to Leandro Melão Medeiros
  • build: relicense under Apache-2.0 and update the package metadata

1.1.0

  • build(deps): upgrade Swashbuckle.AspNetCore to 11.0.1 and Microsoft.OpenApi to 3.11.1

1.0.6

  • docs: expand XML docblocks across all projects for the DocFX API reference

1.0.5

  • refactor(src): clean up code style across library packages

1.0.3

  • build: migrate local automation to build tooling

1.0.2

  • docs: expand package guides and release histories

1.0.1

  • Added a package-specific NuGet README.

1.0.0

  • Introduced domain event envelopes, handlers and processing, the local event bus and message broker envelope parsing.
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 (1)

Showing the top 1 NuGet packages that depend on Anarchy.Toolkit.Core.Events:

Package Downloads
Anarchy.Toolkit.Infrastructure.Persistence.Db

Provider-agnostic relational database implementation of the persistence abstraction: connection pool, Unit of Work, resilience policy, dialect contract, repository bases, service health reports, and the transactional outbox / event store (repository contracts, records, type-id cache, and repository bases; providers supply the dialect and the embedded SQL).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.1 59 11/21/2026
2.0.0 61 11/20/2026
1.1.1 162 11/17/2026
1.1.0 143 11/17/2026
1.0.6 161 11/16/2026
1.0.5 194 11/14/2026
1.0.4 198 11/9/2026
1.0.3 157 11/9/2026
1.0.1 250 11/6/2026
1.0.0 179 11/5/2026

Initial release.