Faactory.Channels.Messaging 0.1.2

dotnet add package Faactory.Channels.Messaging --version 0.1.2
                    
NuGet\Install-Package Faactory.Channels.Messaging -Version 0.1.2
                    
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="Faactory.Channels.Messaging" Version="0.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Faactory.Channels.Messaging" Version="0.1.2" />
                    
Directory.Packages.props
<PackageReference Include="Faactory.Channels.Messaging" />
                    
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 Faactory.Channels.Messaging --version 0.1.2
                    
#r "nuget: Faactory.Channels.Messaging, 0.1.2"
                    
#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 Faactory.Channels.Messaging@0.1.2
                    
#: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=Faactory.Channels.Messaging&version=0.1.2
                    
Install as a Cake Addin
#tool nuget:?package=Faactory.Channels.Messaging&version=0.1.2
                    
Install as a Cake Tool

Channels Messaging

Messaging support for Channels.

This package provides a simple publish/subscribe abstraction that allows messages to be exchanged between channel instances and external components.

[!NOTE] This project is currently incubated and is not yet considered production-ready. The API may change in future releases.

Features

  • Publish messages to channels
  • Subscribe to channel messages
  • Channel-scoped message dispatching
  • Request/response workflows through message correlation
  • Transport-agnostic abstractions

Getting Started

Enable messaging on a channel configuration.

services.AddChannels( channel =>
{
    channel.AddMessaging( messaging =>
    {
        messaging.AddMessageHandler<MyMessageHandler>();
    } );
} );

Implement a message handler.

public class MyMessageHandler : IChannelMessageHandler
{
    public string Type => "sample.message";

    public Task HandleAsync(
        IChannel channel,
        ChannelMessage message,
        CancellationToken cancellationToken = default )
    {
        // handle message

        return Task.CompletedTask;
    }
}

Publish a message.

await channelPublisher.PublishAsync(
    new ChannelMessage(
        channelId,
        "sample.message",
        JsonSerializer.SerializeToElement( new
        {
            Value = 123
        } )
    )
);

Message Correlation

Each ChannelMessage contains a unique MessageId and an optional CorrelationId.

These can be used to implement request/response workflows and correlate responses to previously published messages.

Transports

This package only defines the messaging abstractions and channel-side dispatching mechanisms.

Transport implementations are not included and must be provided separately. You can implement your own transport or use existing ones that integrate with this messaging system.

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
0.1.2 213 6/29/2026
0.1.1 128 6/23/2026
0.1.0 113 6/19/2026