Table of Contents

Class RabbitMQProviderServiceCollectionExtensions

Namespace
Steeltoe.Connector.RabbitMQ
Assembly
Steeltoe.Connector.ConnectorCore.dll
public static class RabbitMQProviderServiceCollectionExtensions
Inheritance
RabbitMQProviderServiceCollectionExtensions
Inherited Members

Methods

AddRabbitMQConnection(IServiceCollection, IConfiguration, ServiceLifetime, bool)

Add RabbitMQ and its IHealthContributor to a ServiceCollection

public static IServiceCollection AddRabbitMQConnection(this IServiceCollection services, IConfiguration config, ServiceLifetime contextLifetime = ServiceLifetime.Scoped, bool addSteeltoeHealthChecks = false)

Parameters

services IServiceCollection

Service collection to add to

config IConfiguration

App configuration

contextLifetime ServiceLifetime

Lifetime of the service to inject

addSteeltoeHealthChecks bool

Add Steeltoe healthChecks

Returns

IServiceCollection

IServiceCollection for chaining

Remarks

RabbitMQ.Client.ConnectionFactory is retrievable as both ConnectionFactory and IConnectionFactory

AddRabbitMQConnection(IServiceCollection, IConfiguration, string, ServiceLifetime, bool)

Add RabbitMQ and its IHealthContributor to a ServiceCollection

public static IServiceCollection AddRabbitMQConnection(this IServiceCollection services, IConfiguration config, string serviceName, ServiceLifetime contextLifetime = ServiceLifetime.Scoped, bool addSteeltoeHealthChecks = false)

Parameters

services IServiceCollection

Service collection to add to

config IConfiguration

App configuration

serviceName string

cloud foundry service name binding

contextLifetime ServiceLifetime

Lifetime of the service to inject

addSteeltoeHealthChecks bool

Add Steeltoe healthChecks

Returns

IServiceCollection

IServiceCollection for chaining

Remarks

RabbitMQ.Client.ConnectionFactory is retrievable as both ConnectionFactory and IConnectionFactory