Class MassTransitDiscoveryServiceInstanceListenerBuilder
Provides the builder class for a DiscoveryServiceInstanceListenerBuilder that uses the MassTransit transport.
Inheritance
Namespace: Copper.Discovery.MassTransit.Service.V1
Assembly: Copper.Discovery.MassTransit.Service.dll
Syntax
public class MassTransitDiscoveryServiceInstanceListenerBuilder
Constructors
View SourceMassTransitDiscoveryServiceInstanceListenerBuilder(DiscoveryServiceInstanceListenerBuilder)
Initializes a new instance of the MassTransitDiscoveryServiceInstanceListenerBuilder class.
Declaration
public MassTransitDiscoveryServiceInstanceListenerBuilder(DiscoveryServiceInstanceListenerBuilder discoveryServiceInstanceListenerBuilder)
Parameters
Type | Name | Description |
---|---|---|
DiscoveryServiceInstanceListenerBuilder | discoveryServiceInstanceListenerBuilder | The discovery service instance listener builder. |
Methods
View SourceUseBusControlSettings(BusControlSettings, String)
Configures the event discovery service instance listener to use the provided bus control settings.
Declaration
public MassTransitDiscoveryServiceInstanceListenerBuilder UseBusControlSettings(BusControlSettings busControlSettings, string queueName)
Parameters
Type | Name | Description |
---|---|---|
BusControlSettings | busControlSettings | The bus control settings. |
System.String | queueName | The queue name. |
Returns
Type | Description |
---|---|
MassTransitDiscoveryServiceInstanceListenerBuilder | The same instance of MassTransitDiscoveryServiceInstanceListenerBuilder for chaining. |
UseDefaultAzureServiceBus(String, String)
Configures the discovery service instance listener to use the default Azure Service Bus bus control settings.
Declaration
public MassTransitDiscoveryServiceInstanceListenerBuilder UseDefaultAzureServiceBus(string connectionString, string queueName)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The connection string. |
System.String | queueName | The queue name. |
Returns
Type | Description |
---|---|
MassTransitDiscoveryServiceInstanceListenerBuilder | The same instance of MassTransitDiscoveryServiceInstanceListenerBuilder for chaining. |
UseDefaultRabbitMq(String, String)
Configures the discovery service instance listener to use the default RabbitMQ bus control settings.
Declaration
public MassTransitDiscoveryServiceInstanceListenerBuilder UseDefaultRabbitMq(string connectionString, string queueName)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The connection string. |
System.String | queueName | The queue name. |
Returns
Type | Description |
---|---|
MassTransitDiscoveryServiceInstanceListenerBuilder | The same instance of MassTransitDiscoveryServiceInstanceListenerBuilder for chaining. |
UseInMemoryBus(InMemoryBusControlSettings, String)
Configures the discovery service instance listener to use the provided in-memory bus control settings.
Declaration
public MassTransitDiscoveryServiceInstanceListenerBuilder 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 |
---|---|
MassTransitDiscoveryServiceInstanceListenerBuilder | The same instance of MassTransitDiscoveryServiceInstanceListenerBuilder for chaining. |