Class MassTransitEventReceiverBuilder
Provides the builder class for an Event
Inheritance
Namespace: Copper.Eventing.MassTransit.Common.V1
Assembly: Copper.Eventing.MassTransit.Common.dll
Syntax
public class MassTransitEventReceiverBuilder
Constructors
View SourceMassTransitEventReceiverBuilder(EventReceiverBuilder)
Initializes a new instance of the Mass
Declaration
public MassTransitEventReceiverBuilder(EventReceiverBuilder eventReceiverBuilder)
Parameters
Type | Name | Description |
---|---|---|
Event |
eventReceiverBuilder | The event receiver builder. |
Methods
View SourceUseBusControlSettings(BusControlSettings, String)
Configures the event receiver to use the provided bus control settings.
Declaration
public MassTransitEventReceiverBuilder UseBusControlSettings(BusControlSettings busControlSettings, string queueName)
Parameters
Type | Name | Description |
---|---|---|
Bus |
busControlSettings | The bus control settings. |
System. |
queueName | The queue name. |
Returns
Type | Description |
---|---|
Mass |
The same instance of Mass |
UseDefaultAzureServiceBus(String, String)
Configures the event receiver to use the default Azure Service Bus bus control settings.
Declaration
public MassTransitEventReceiverBuilder UseDefaultAzureServiceBus(string connectionString, string queueName)
Parameters
Type | Name | Description |
---|---|---|
System. |
connectionString | The connection string. |
System. |
queueName | The queue name. |
Returns
Type | Description |
---|---|
Mass |
The same instance of Mass |
UseDefaultRabbitMq(String, String)
Configures the event receiver to use the default RabbitMQ bus control settings.
Declaration
public MassTransitEventReceiverBuilder UseDefaultRabbitMq(string connectionString, string queueName)
Parameters
Type | Name | Description |
---|---|---|
System. |
connectionString | The connection string. |
System. |
queueName | The queue name. |
Returns
Type | Description |
---|---|
Mass |
The same instance of Mass |
UseInMemoryBus(InMemoryBusControlSettings, String)
Configures the event receiver to use the provided in-memory bus control settings.
Declaration
public MassTransitEventReceiverBuilder UseInMemoryBus(InMemoryBusControlSettings inMemoryBusControlSettings, string queueName)
Parameters
Type | Name | Description |
---|---|---|
In |
inMemoryBusControlSettings | The in-memory bus control settings. |
System. |
queueName | The queue name. |
Returns
Type | Description |
---|---|
Mass |
The same instance of Mass |