Sanet.Transport.Channel 1.0.2

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

Sanet.Transport.Channel

System.Threading.Channels implementation of the Sanet.Transport abstractions.

NuGet

Overview

Sanet.Transport.Channel provides an implementation of the ITransportPublisher interface using System.Threading.Channels, enabling high-performance message passing with back-pressure support.

Features

  • High-performance message passing
  • Producer-consumer patterns
  • Thread-safe communication

Installation

dotnet add package Sanet.Transport.Channel

Or via the Package Manager Console:

Install-Package Sanet.Transport.Channel

Usage

// Create a Channel transport publisher
ITransportPublisher publisher = new ChannelTransportPublisher();

// Subscribe to messages
publisher.Subscribe(message => {
    Console.WriteLine($"Received message: {message.CommandType}");
    // Process the message
});

// Publish a message
publisher.PublishMessage(new TransportMessage {
    CommandType = "SomeCommand",
    SourceId = Guid.NewGuid(),
    Payload = "{\"key\": \"value\"}",
    Timestamp = DateTime.UtcNow
});

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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
1.0.2 142 3/31/2025
1.0.1 111 3/28/2025
1.0.0 117 3/27/2025
0.2.0 123 3/26/2025