Class RabbitMQHostApplicationBuilderExtensions
- Namespace
- Steeltoe.Connectors.RabbitMQ
- Assembly
- Steeltoe.Connectors.dll
public static class RabbitMQHostApplicationBuilderExtensions
- Inheritance
-
RabbitMQHostApplicationBuilderExtensions
- Inherited Members
Methods
AddRabbitMQ(IHostApplicationBuilder)
Registers a ConnectorFactory<TOptions, TConnection> (with type parameters RabbitMQOptions and RabbitMQ.Client.IConnection) to connect to a RabbitMQ server.
public static IHostApplicationBuilder AddRabbitMQ(this IHostApplicationBuilder builder)
Parameters
builder
IHostApplicationBuilderThe IHostApplicationBuilder to configure.
Returns
- IHostApplicationBuilder
The incoming
builder
so that additional calls can be chained.
AddRabbitMQ(IHostApplicationBuilder, Action<ConnectorConfigureOptionsBuilder>?, Action<ConnectorAddOptionsBuilder>?)
Registers a ConnectorFactory<TOptions, TConnection> (with type parameters RabbitMQOptions and RabbitMQ.Client.IConnection) to connect to a RabbitMQ server.
public static IHostApplicationBuilder AddRabbitMQ(this IHostApplicationBuilder builder, Action<ConnectorConfigureOptionsBuilder>? configureAction, Action<ConnectorAddOptionsBuilder>? addAction)
Parameters
builder
IHostApplicationBuilderThe IHostApplicationBuilder to configure.
configureAction
Action<ConnectorConfigureOptionsBuilder>An optional delegate to configure configuration of this connector.
addAction
Action<ConnectorAddOptionsBuilder>An optional delegate to configure this connector.
Returns
- IHostApplicationBuilder
The incoming
builder
so that additional calls can be chained.