Class MassTransitEventPublisherBuilder
Provides the builder class for a EventPublisherBuilder that uses the MassTransit transport.
Inheritance
Namespace: Copper.Eventing.MassTransit.Common.V1
Assembly: Copper.Eventing.MassTransit.Common.dll
Syntax
public class MassTransitEventPublisherBuilder
Constructors
View SourceMassTransitEventPublisherBuilder(EventPublisherBuilder)
Initializes a new instance of the MassTransitEventPublisherBuilder class.
Declaration
public MassTransitEventPublisherBuilder(EventPublisherBuilder eventPublisherBuilder)
Parameters
Type | Name | Description |
---|---|---|
EventPublisherBuilder | eventPublisherBuilder | The event publisher builder. |
Methods
View SourceUseBusControlSettings(BusControlSettings)
Configures the event publisher to use the provided bus control settings.
Declaration
public MassTransitEventPublisherBuilder UseBusControlSettings(BusControlSettings busControlSettings)
Parameters
Type | Name | Description |
---|---|---|
BusControlSettings | busControlSettings | The bus control settings. |
Returns
Type | Description |
---|---|
MassTransitEventPublisherBuilder | The same instance of MassTransitEventPublisherBuilder for chaining. |
UseDefaultAzureServiceBus(String)
Configures the event publisher to use the default Azure Service Bus bus control settings.
Declaration
public MassTransitEventPublisherBuilder UseDefaultAzureServiceBus(string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The connection string. |
Returns
Type | Description |
---|---|
MassTransitEventPublisherBuilder | The same instance of MassTransitEventPublisherBuilder for chaining. |
UseDefaultRabbitMq(String)
Configures the event publisher to use the default RabbitMQ bus control settings.
Declaration
public MassTransitEventPublisherBuilder UseDefaultRabbitMq(string connectionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The connection string. |
Returns
Type | Description |
---|---|
MassTransitEventPublisherBuilder | The same instance of MassTransitEventPublisherBuilder for chaining. |
UseInMemoryBus(InMemoryBusControlSettings)
Configures the event publisher to use the provided in-memory bus control settings.
Declaration
public MassTransitEventPublisherBuilder UseInMemoryBus(InMemoryBusControlSettings inMemoryBusControlSettings)
Parameters
Type | Name | Description |
---|---|---|
InMemoryBusControlSettings | inMemoryBusControlSettings | The in-memory bus control settings. |
Returns
Type | Description |
---|---|
MassTransitEventPublisherBuilder | The same instance of MassTransitEventPublisherBuilder for chaining. |
UseRequestSubmitterOptions(Action<EventPublisherOptions>)
Configures the event publisher's EventPublisherOptions instance.
Declaration
public MassTransitEventPublisherBuilder UseRequestSubmitterOptions(Action<EventPublisherOptions> configureEventPublisherOptions)
Parameters
Type | Name | Description |
---|---|---|
System.Action<EventPublisherOptions> | configureEventPublisherOptions | A delegate that configures a EventPublisherOptions instance. |
Returns
Type | Description |
---|---|
MassTransitEventPublisherBuilder | The same instance of MassTransitEventPublisherBuilder for chaining. |