Class MassTransitDiscoveryClientBuilder
Provides the builder class for a DiscoveryClientBuilder that uses the MassTransit transport.
Inheritance
Namespace: Copper.Discovery.MassTransit.Common.V1
Assembly: Copper.Discovery.MassTransit.Common.dll
Syntax
public class MassTransitDiscoveryClientBuilder
Constructors
View SourceMassTransitDiscoveryClientBuilder(DiscoveryClientBuilder)
Initializes a new instance of the MassTransitDiscoveryClientBuilder class.
Declaration
public MassTransitDiscoveryClientBuilder(DiscoveryClientBuilder discoveryClientBuilder)
Parameters
Type | Name | Description |
---|---|---|
DiscoveryClientBuilder | discoveryClientBuilder | The discovery client builder. |
Methods
View SourceUseBusControlSettings(BusControlSettings, String)
Configures the discovery client to use the provided bus control settings.
Declaration
public MassTransitDiscoveryClientBuilder UseBusControlSettings(BusControlSettings busControlSettings, string responseQueueName)
Parameters
Type | Name | Description |
---|---|---|
BusControlSettings | busControlSettings | The bus control settings. |
System.String | responseQueueName | The response queue name. |
Returns
Type | Description |
---|---|
MassTransitDiscoveryClientBuilder | The same instance of MassTransitDiscoveryClientBuilder for chaining. |
UseDefaultAzureServiceBus(String, String)
Configures the discovery client to use the default Azure Service Bus bus control settings.
Declaration
public MassTransitDiscoveryClientBuilder UseDefaultAzureServiceBus(string connectionString, string responseQueueName)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The connection string. |
System.String | responseQueueName | The response queue name. |
Returns
Type | Description |
---|---|
MassTransitDiscoveryClientBuilder | The same instance of MassTransitDiscoveryClientBuilder for chaining. |
UseDefaultRabbitMq(String, String)
Configures the discovery client to use the default RabbitMQ bus control settings.
Declaration
public MassTransitDiscoveryClientBuilder UseDefaultRabbitMq(string connectionString, string responseQueueName)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionString | The connection string. |
System.String | responseQueueName | The response queue name. |
Returns
Type | Description |
---|---|
MassTransitDiscoveryClientBuilder | The same instance of MassTransitDiscoveryClientBuilder for chaining. |
UseInMemoryBus(InMemoryBusControlSettings, String)
Configures the discovery client to use the provided in-memory bus control settings.
Declaration
public MassTransitDiscoveryClientBuilder UseInMemoryBus(InMemoryBusControlSettings inMemoryBusControlSettings, string responseQueueName)
Parameters
Type | Name | Description |
---|---|---|
InMemoryBusControlSettings | inMemoryBusControlSettings | The in-memory bus control settings. |
System.String | responseQueueName | The response queue name. |
Returns
Type | Description |
---|---|
MassTransitDiscoveryClientBuilder | The same instance of MassTransitDiscoveryClientBuilder for chaining. |