Sanet.Transport.Channel
1.7.0
dotnet add package Sanet.Transport.Channel --version 1.7.0
NuGet\Install-Package Sanet.Transport.Channel -Version 1.7.0
<PackageReference Include="Sanet.Transport.Channel" Version="1.7.0" />
<PackageVersion Include="Sanet.Transport.Channel" Version="1.7.0" />
<PackageReference Include="Sanet.Transport.Channel" />
paket add Sanet.Transport.Channel --version 1.7.0
#r "nuget: Sanet.Transport.Channel, 1.7.0"
#:package Sanet.Transport.Channel@1.7.0
#addin nuget:?package=Sanet.Transport.Channel&version=1.7.0
#tool nuget:?package=Sanet.Transport.Channel&version=1.7.0
Sanet.Transport.Channel
System.Threading.Channels implementation of the Sanet.Transport abstractions.
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
});
Connection State
ConnectionState is Connected from construction until the publisher is disposed, at which
point it becomes Closed and ConnectionStateChanged fires once. Message activity never
changes the reported state.
License
This project is licensed under the MIT License - see the LICENSE file for details.
| Product | Versions 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. |
-
net10.0
- Sanet.Transport (>= 1.7.0)
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.7.0 | 98 | 8/28/2026 |
| 1.6.0 | 94 | 8/26/2026 |
| 1.5.1 | 97 | 8/22/2026 |
| 1.5.0 | 97 | 8/22/2026 |
| 1.4.2 | 100 | 8/18/2026 |
| 1.4.1 | 111 | 8/17/2026 |
| 1.4.0 | 100 | 8/16/2026 |
| 1.3.2 | 94 | 8/15/2026 |
| 1.3.1 | 102 | 8/15/2026 |
| 1.3.0 | 101 | 8/13/2026 |
| 1.2.0 | 106 | 8/13/2026 |
| 1.1.1 | 110 | 7/24/2026 |
| 1.1.0 | 119 | 5/17/2026 |
| 1.0.2 | 281 | 3/31/2025 |
| 1.0.1 | 219 | 3/28/2025 |
| 1.0.0 | 226 | 3/27/2025 |
| 0.2.0 | 225 | 3/26/2025 |