Escendit.Orleans.Clients.RabbitMQ.AmqpProtocol 0.1.0-rc.146

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

// Install Escendit.Orleans.Clients.RabbitMQ.AmqpProtocol as a Cake Tool
#tool nuget:?package=Escendit.Orleans.Clients.RabbitMQ.AmqpProtocol&version=0.1.0-rc.146&prerelease

NuGet Package: Escendit.Orleans.Clients.RabbitMQ.AmqpProtocol

Escendit.Orleans.Clients.RabbitMQ.AmqpProtocol is a NuGet package that provides the ability to register IConnectionFactory or IConnection. This package is suitable for both Worker (Console) and Web Applications, allowing you to easily configure and manage RabbitMQ connections within your Orleans-based projects.

Installation

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

Install-Package Escendit.Orleans.Clients.RabbitMQ.AmqpProtocol

Usage

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

Host

Register and use IConnectionFactory with the newly named ConnectionOptions registration.
Host
    .CreateDefaultBuilder()
    .AddRabbitMqConnectionFactory("name", ...)
var connectionOptions = serviceProvider.GetRequiredServiceByName<IConnectionFactory>("name");
Register and use IConnectionFactory with the existing ConnectionOptions registration.
Host
    .CreateDefaultBuilder()
    .AddRabbitMqConnectionFactoryFromOption("name", "existing_name")
var connectionOptions = serviceProvider.GetRequiredServiceByName<IConnectionFactory>("name");
Register and use IConnection with the newly named ConnectionOptions and IConnectionFactory registration.
Host
    .CreateDefaultBuilder()
    .AddRabbitMqConnection("name", ...)
var connectionOptions = serviceProvider.GetRequiredServiceByName<IConnection>("name");
Register and use IConnection with the existing IConnectionFactory registration.
Host
    .CreateDefaultBuilder()
    .AddRabbitMqConnectionFromFactory("name", "existing_name")
var connectionOptions = serviceProvider.GetRequiredServiceByName<IConnection>("name");

Web Application

Register and use IConnectionFactory with the newly named ConnectionOptions registration.
WebApplication
    .CreateBuilder()
    .AddRabbitMqConnectionFactory("name", ...)
var connectionOptions = serviceProvider.GetRequiredServiceByName<IConnectionFactory>("name");
Register and use IConnectionFactory with the existing ConnectionOptions registration.
WebApplication
    .CreateBuilder()
    .AddRabbitMqConnectionFactoryFromOption("name", "existing_name")
var connectionOptions = serviceProvider.GetRequiredServiceByName<IConnectionFactory>("name");
Register and use IConnection with the newly named ConnectionOptions and IConnectionFactory registration.
WebApplication
    .CreateBuilder()
    .AddRabbitMqConnection("name", ...)
var connectionOptions = serviceProvider.GetRequiredServiceByName<IConnection>("name");
Register and use IConnection with the existing IConnectionFactory registration.
WebApplication
    .CreateBuilder()
    .AddRabbitMqConnectionFromFactory("name", "existing_name")
var connectionOptions = serviceProvider.GetRequiredServiceByName<IConnection>("name");

Contributing

If you'd like to contribute to Escendit.Orleans.Clients.RabbitMQ, 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 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.

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.1.0-rc.146 84 9/18/2023
0.1.0-rc.144 58 9/18/2023
0.1.0-rc.142 57 9/18/2023
0.1.0-rc.140 58 9/18/2023
0.1.0-rc.139 67 9/11/2023
0.1.0-rc.137 67 9/11/2023
0.1.0-rc.135 73 8/29/2023
0.1.0-rc.133 69 8/27/2023
0.1.0-rc.132 68 8/27/2023