Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions
0.2.0
dotnet add package Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions --version 0.2.0
NuGet\Install-Package Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions -Version 0.2.0
<PackageReference Include="Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions" Version="0.2.0" />
paket add Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions --version 0.2.0
#r "nuget: Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions, 0.2.0"
// Install Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions as a Cake Addin #addin nuget:?package=Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions&version=0.2.0 // Install Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions as a Cake Tool #tool nuget:?package=Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions&version=0.2.0
RabbitMQ Client Extensions for .NET and Orleans
Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions is a NuGet package that provides the ability to register connection options for RabbitMQ protocols.
Installation
To install Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions, run the following command in the Package Manager Console:
Install-Package Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions
Usage
Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions package is not intended to be used as a standalone package. It is meant to be used in conjunction with either:
Service Collection
- Escendit.Extensions.DependencyInjection.RabbitMQ.AmqpProtocol
- Escendit.Extensions.DependencyInjection.RabbitMQ.StreamProtocol
Hosting
- Escendit.Extensions.Hosting.RabbitMQ.AmqpProtocol
- Escendit.Extensions.Hosting.RabbitMQ.StreamProtocol
ASP.NET Core
- Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol
- Escendit.AspNetCore.Builder.RabbitMQ.StreamProtocol
There are several ways how to register connection options.
Dependency Injection
Register & Use with Default Options
services
.AddRabbitMqConnectionOptionsAsDefault(...)
.NET 8
var connectionOptions = serviceProvider.GetRequiredKeyedService<ConnectionOptions>(ConnectionOptions.DefaultKey);
.NET 7
var connectionOptions = serviceProvider.GetRequiredServiceByKey<object?, ConnectionOptions>(ConnectionOptions.DefaultKey);
Register & Use with Named Options
services
.AddRabbitMqConnectionOptions("name", ...)
.NET 8
var connectionOptions = serviceProvider.GetRequiredKeyedService<ConnectionOptions>("name");
.NET 7
var connectionOptions = serviceProvider.GetRequiredServiceByKey<object?, ConnectionOptions>("name");
Contributing
If you'd like to contribute to rabbitmq-dotnet-extensions, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.
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 is compatible. 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. |
-
net7.0
- Microsoft.Extensions.DependencyInjection (>= 7.0.0)
- Microsoft.Extensions.Options (>= 7.0.1)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 7.0.0)
- Microsoft.Orleans.Core (>= 7.2.4)
-
net8.0
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Options (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Escendit.Extensions.DependencyInjection.RabbitMQ.Abstractions:
Package | Downloads |
---|---|
Escendit.Orleans.Streaming.RabbitMQ
RabbitMQ Orleans Streaming Provider |
|
Escendit.Extensions.DependencyInjection.RabbitMQ.AmqpProtocol
RabbitMQ AMQP Client Service Collection Extensions. |
|
Escendit.Extensions.DependencyInjection.RabbitMQ.StreamProtocol
RabbitMQ Stream Client Service Collection Extensions. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.2.0 | 5,387 | 12/8/2023 |
0.1.0-rc.171 | 76 | 12/8/2023 |
0.1.0-rc.169 | 64 | 12/8/2023 |
0.1.0-rc.166 | 72 | 12/8/2023 |
0.1.0-rc.160 | 72 | 12/7/2023 |