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" />
<PackageReference Include="Sanet.Transport.Channel" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Sanet.Transport.Channel&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
});
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 | 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.
-
net9.0
- Sanet.Transport (>= 1.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.