Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol 0.2.0

dotnet add package Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol --version 0.2.0                
NuGet\Install-Package Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol -Version 0.2.0                
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="Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol" Version="0.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol --version 0.2.0                
#r "nuget: Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol, 0.2.0"                
#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 Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol as a Cake Addin
#addin nuget:?package=Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol&version=0.2.0

// Install Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol as a Cake Tool
#tool nuget:?package=Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol&version=0.2.0                

RabbitMQ Client Extensions for .NET and Orleans

Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol is a NuGet package that provides the ability to register StreamSystem.

Installation

To install Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol, run the following command in the Package Manager Console:

Install-Package Escendit.AspNetCore.Builder.RabbitMQ.AmqpProtocol

Usage

There are several ways to register contracts that can be used in an application:

Register and use IConnectionFactory with the newly named ConnectionOptions registration.

WebApplication
    .CreateBuilder()
    .AddRabbitMqConnectionFactory("name", ...)
NET 8
var connectionFactory = serviceProvider.GetRequiredKeyedService<IConnectionFactory>("name");
NET 7
var connectionFactory = serviceProvider.GetRequiredServiceByKey<object?, IConnectionFactory>("name");

Register and use IConnectionFactory with the existing ConnectionOptions registration.

WebApplication
    .CreateBuilder()
    .AddRabbitMqConnectionFactoryFromOption("name", "existing_name")
NET 8
var connectionFactory = serviceProvider.GetRequiredKeyedService<IConnectionFactory>("name");
NET 7
var connectionFactory = serviceProvider.GetRequiredServiceByKey<object?, IConnectionFactory>("name");

Register and use IConnection with the newly named ConnectionOptions and IConnectionFactory registration.

WebApplication
    .CreateBuilder()
    .AddRabbitMqConnection("name", ...)
NET 8
var connection = serviceProvider.GetRequiredKeyedService<IConnection>("name");
NET 7
var connection = serviceProvider.GetRequiredServiceByKey<object?, IConnection>("name");

Register and use IConnection with the existing IConnectionFactory registration.

WebApplication
    .CreateBuilder()
    .AddRabbitMqConnectionFromFactory("name", "existing_name")
NET 8
var connection = serviceProvider.GetRequiredKeyedService<IConnection>("name");
NET 7
var connection = serviceProvider.GetRequiredServiceByKey<object?, IConnection>("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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.2.0 241 12/8/2023
0.1.0-rc.171 73 12/8/2023
0.1.0-rc.169 72 12/8/2023
0.1.0-rc.166 72 12/8/2023
0.1.0-rc.160 74 12/7/2023