Class MassTransitEventReceiverBuilder
Provides the builder class for an EventReceiverBuilder that uses the MassTransit transport.
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 MassTransitEventReceiverBuilder class.
Declaration
public MassTransitEventReceiverBuilder(EventReceiverBuilder eventReceiverBuilder)
Parameters
Type | Name | Description |
---|---|---|
EventReceiverBuilder | 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 |
---|---|---|
BusControlSettings | busControlSettings | The bus control settings. |
System.String | queueName | The queue name. |
Returns
Type | Description |
---|---|
MassTransitEventReceiverBuilder | The same instance of MassTransitEventReceiverBuilder for chaining. |
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.String | connectionString | The connection string. |
System.String | queueName | The queue name. |
Returns
Type | Description |
---|---|
MassTransitEventReceiverBuilder | The same instance of MassTransitEventReceiverBuilder for chaining. |
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.String | connectionString | The connection string. |
System.String | queueName | The queue name. |
Returns
Type | Description |
---|---|
MassTransitEventReceiverBuilder | The same instance of MassTransitEventReceiverBuilder for chaining. |
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 |
---|---|---|
InMemoryBusControlSettings | inMemoryBusControlSettings | The in-memory bus control settings. |
System.String | queueName | The queue name. |
Returns
Type | Description |
---|---|
MassTransitEventReceiverBuilder | The same instance of MassTransitEventReceiverBuilder for chaining. |