FastCSharp.RabbitPublisher
0.0.0-alpha
This is a prerelease version of FastCSharp.RabbitPublisher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package FastCSharp.RabbitPublisher --version 0.0.0-alpha
NuGet\Install-Package FastCSharp.RabbitPublisher -Version 0.0.0-alpha
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="FastCSharp.RabbitPublisher" Version="0.0.0-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FastCSharp.RabbitPublisher --version 0.0.0-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FastCSharp.RabbitPublisher, 0.0.0-alpha"
#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.
// Install FastCSharp.RabbitPublisher as a Cake Addin #addin nuget:?package=FastCSharp.RabbitPublisher&version=0.0.0-alpha&prerelease // Install FastCSharp.RabbitPublisher as a Cake Tool #tool nuget:?package=FastCSharp.RabbitPublisher&version=0.0.0-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FastCSharp's RabbitMQ Publisher
RabbitPublisher provides a simple approach for publishing messages to a RabbitMQ exchange.
It is a wrapper around the RabbitMQ.Client library.
Usage
var exchange = new RabbitDirectExchangeFactory(configuration, loggerFactory);
using var publisher = exchange.NewPublisher<string>("PUBLISH.SDK.DIRECT", "TASK_QUEUE");
await publisher.Publish("Hello World!");
appsettings.json config file sample
{
"RabbitPublisherConfig" :
{
"HostName" : "localhost",
"Port" : 5672,
"UserName" : "guest",
"Password" : "guest",
"Timeout" : "00:00:05",
"Exchanges" :
{
"PUBLISH.SDK.DIRECT" :
{
"Name" : "test.direct.exchange",
"Type" : "Direct",
"NamedRoutingKeys":
{
"TASK_QUEUE" : "test.direct.q"
}
},
"PUBLISH.SDK.FANOUT" :
{
"Name" : "test.fanout.exchange",
"Type" : "Fanout"
},
"PUBLISH.SDK.TOPIC" :
{
"Name" : "test.topic.exchange",
"Type" : "Topic",
"RoutingKeys" : [".mail.", ".sms.", ".letter"]
}
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net7.0
- FastCSharp.Publisher (>= 0.0.0-alpha)
- Microsoft.Extensions.Configuration (>= 7.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 7.0.3)
- Microsoft.Extensions.Logging (>= 7.0.0)
- RabbitMQ.Client (>= 6.4.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.5.0 | 581 | 1/5/2024 |
1.4.0 | 160 | 12/17/2023 |
1.0.1 | 161 | 11/28/2023 |
1.0.0 | 162 | 10/20/2023 |
0.4.3-alpha | 104 | 9/25/2023 |
0.4.2-alpha | 118 | 9/23/2023 |
0.4.1-alpha | 101 | 9/23/2023 |
0.3.1-alpha | 115 | 9/22/2023 |
0.0.1-alpha | 115 | 9/18/2023 |
0.0.0-alpha | 131 | 4/9/2023 |