Sanet.Transport
1.1.0
dotnet add package Sanet.Transport --version 1.1.0
NuGet\Install-Package Sanet.Transport -Version 1.1.0
<PackageReference Include="Sanet.Transport" Version="1.1.0" />
<PackageVersion Include="Sanet.Transport" Version="1.1.0" />
<PackageReference Include="Sanet.Transport" />
paket add Sanet.Transport --version 1.1.0
#r "nuget: Sanet.Transport, 1.1.0"
#:package Sanet.Transport@1.1.0
#addin nuget:?package=Sanet.Transport&version=1.1.0
#tool nuget:?package=Sanet.Transport&version=1.1.0
Sanet.Transport
Core abstractions for message-based communication in distributed systems.
Overview
Sanet.Transport provides the core interfaces and message definitions for a simple, extensible architecture for publishing and subscribing to messages between different parts of an application or between distributed systems.
Key Components
- ITransportPublisher: Core interface for publishing and subscribing to messages
- TransportMessage: Standard message format for all transport implementations
Basic Usage
// 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
});
Available Implementations
- Sanet.Transport.Rx - Reactive Extensions implementation
- Sanet.Transport.Channel - System.Threading.Channels implementation
- Sanet.Transport.SignalR - ASP.NET Core SignalR implementation
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
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Sanet.Transport:
| Package | Downloads |
|---|---|
|
Sanet.Transport.Rx
Reactive Extensions implementation of the Sanet.Transport abstractions |
|
|
Sanet.Transport.SignalR.Client
Client components for SignalR implementation of the Sanet.Transport abstractions. Includes discovery and client publisher. |
|
|
Sanet.Transport.SignalR
SignalR implementation of the Sanet.Transport abstractions |
|
|
Sanet.Transport.SignalR.Server
Server components for SignalR implementation of the Sanet.Transport abstractions. Includes Hub, HostManager and server publisher. |
|
|
Sanet.Transport.Channel
System.Threading.Channels implementation of the Sanet.Transport abstractions |
GitHub repositories
This package is not used by any popular GitHub repositories.