Compze.Tessaging 0.22.0-alpha

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

Compze.Tessaging

Messaging infrastructure for the Compze framework.

What is Compze?

Compze is a .NET framework for building expressive domains through Teventive programming and Typermedia APIs. Learn more

What's in this package?

This package provides the messaging infrastructure that powers Compze's type-routed communication:

  • Tommand, tuery, and tevent handling — Type-routed message dispatch for ITommand, ITuery, and ITevent
  • Message routing — Automatic routing based on .NET type compatibility
  • Three composed shapes — LocalTessagingEngine(...) composes the engine — the synchronous local core everything else rides — into a plain container with no transports at all; a BestEffortEndpointDeclaration builds an endpoint giving the engine identity and a wire with nothing persisted anywhere; an ExactlyOnceEndpointDeclaration adds the durable vertical (inbox, outbox, durable peer memory, the tommand senders) through which endpoints converse with delivery guarantees. TypermediaClient is the pure client — a navigator and a transport client with no server, for external applications

Type-routed messaging example

registrar
  .ForTevent<IUserTevent>(userTevent => Console.WriteLine("User tevent"))
  .ForTevent<IUserRegistered>(userRegistered => Console.WriteLine("User registered"));

When an IUserRegistered tevent (which implements IUserTevent) is published, both handlers are called — no manual routing needed.

Installation

dotnet add package Compze.Tessaging
Package Description
Compze.Abstractions Shared abstractions
Compze.Teventive.TeventStore The tevent store implementation
Compze.Tessaging.Hosting.Testing Testing support

License

Apache-2.0

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (11)

Showing the top 5 NuGet packages that depend on Compze.Tessaging:

Package Downloads
Compze.Tessaging.Hosting.Testing

Hosts test endpoints on a shared root with explicit transport and persistence, private discovery and tracking of tessages in flight.

Compze.Hosting

Endpoint hosting for the Compze framework — endpoints, endpoint hosts, and the builder that capabilities such as the Tessaging and Typermedia pipelines plug into.

Compze.Tessaging.Sqlite

Discontinued: this is its last version. Compze no longer supports SQLite: it runs one writer at a time, so it could never be a fully supported persistence layer. Use Compze.Tessaging.MicrosoftSql for SQL Server, Compze.Tessaging.PostgreSql for PostgreSQL or Compze.Tessaging.MySql for MySQL. For Compze internal use only. Do not take a direct dependency on this package. SQLite inbox/outbox backend for Compze messaging.

Compze.Tessaging.PostgreSql

For Compze internal use only. Do not take a direct dependency on this package. PostgreSQL inbox/outbox backend for Compze messaging.

Compze.Tessaging.MicrosoftSql

For Compze internal use only. Do not take a direct dependency on this package. SQL Server inbox/outbox backend for Compze messaging.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.28.0-alpha 0 12/5/2026
0.27.5-alpha 0 12/5/2026
0.27.4-alpha 0 12/5/2026
0.27.3-alpha 0 12/5/2026
0.27.2-alpha 0 12/5/2026
0.27.1-alpha 9 12/5/2026
0.27.0-alpha 33 12/5/2026
0.26.2-alpha 105 12/5/2026
0.26.1-alpha 66 12/5/2026
0.26.0-alpha 172 12/4/2026
0.25.2-alpha 81 12/4/2026
0.25.1-alpha 89 12/4/2026
0.25.0-alpha 78 12/4/2026
0.24.0-alpha 80 12/4/2026
0.23.0-alpha 114 12/3/2026
0.22.0-alpha 124 12/3/2026
0.21.2-alpha 74 12/3/2026
0.21.1-alpha 142 12/3/2026
0.21.0-alpha 105 12/3/2026
0.20.2-alpha 89 12/3/2026
Loading failed

- **Fixed: a start that fails once the endpoint has claimed its process lock no longer leaves the endpoint half-started.** Such as when its first discovery cannot read its registry: the start now stops the endpoint, which retracts its address, stops listening and releases its process lock, then throws the failure, or an `AggregateException` of it and the stop's failure. Before, the endpoint went on holding its process lock and listening until it was stopped or disposed. A start refused its claim, such as with `EndpointAlreadyRunningInAnotherProcessException`, acquired nothing, stops nothing, and can be tried again.
- **Breaking: `IEndpointHost.Start()` is removed.** It only blocked on `StartAsync`, holding a thread meanwhile: await `StartAsync` instead.
- **`IEndpoint.StartAsync(cancellationToken)` and `IEndpointHost.StartAsync(cancellationToken)` take a cancellation token.** Cancelling it before the start completes stops the endpoint, as `StopAsync` with a cancelled token does: its address is retracted, it stops listening, and an exactly-once endpoint releases its process lock, so that a successor can start at once. The start then throws an `OperationCanceledException`. A host's cancelled start stops every endpoint, those that had already started too. A token cancelled once the start has completed changes nothing.
 - The token reaches the endpoint's wait for an earlier start or stop, its load of the peers it remembers, the inbox's scan for the tessages it has not finished handling, and the first convergence on the registry, such as a wait for a peer's answer in discovery.
- **Breaking: `IEndpoint.AwaitReadinessAsync(readinessTypes, cancellationToken, patience)` takes a cancellation token,** before the patience, which callers pass more rarely. A call that passed the patience by position names it now: `patience: TimeSpan.FromSeconds(30)`. Cancelling ends the wait with an `OperationCanceledException`, and the endpoint goes on running.
- **`TypermediaClient.ConnectAsync(endpointAddress, cancellationToken)`** takes a cancellation token, which ends the wait for the endpoint's advertisement, such as from an endpoint that accepted the connection and never answers. A cancelled connect registers no routes, and the client can connect again.
- **`ILocalTessagingEngine.StopAsync(cancellationToken)` and `AwaitNoTessagesInFlightAsync(cancellationToken)`** take a cancellation token, which ends the wait for the observers without ending what they do. A cancelled stop leaves the engine running: it goes on publishing, and a later stop, or the container's disposal, waits for the observers.
- **`IAdministrationNavigator.GetAsync(tuery, cancellationToken)` and `PostAsync(tommand, cancellationToken)`** take a cancellation token, which reaches the inbox's database reads and the retry's turn and write. A retry cancelled before the endpoint recorded it leaves the tessage marked failed, to be retried again. One the endpoint has recorded completes, cancelled or not.
- **The strictly-local navigators take a cancellation token, and a typermedia handler can take the token of its call.**
 - Every `Execute` and `ExecuteAsync` of `IIndependentLocalTypermediaNavigator` and `ILocalTypermediaNavigatorSession` takes a `cancellationToken`, which it hands to the handler. A call whose token is already cancelled runs no handler.
 - `IIndependentLocalTypermediaNavigator` commits a tommand's unit of work only if the token is still uncancelled once the handler has returned: a cancelled call commits nothing, even when its handler ignored the token. Through `ILocalTypermediaNavigatorSession`, the caller's unit of work decides.
 - `ITypermediaTommandHandlerRegistrar.ForTommand` and `ITueryHandlerRegistrar.ForTuery` take a handler with a `CancellationToken` after its unit of work or scope. A strictly-local handler is handed its navigating caller's token; a remotable one, its remote call's token, the one `IRemoteTypermediaCall` gives.