Class EndpointsConfigurationBuilderAddInboundExtensions
Adds the AddInbound
method to the IEndpointsConfigurationBuilder.
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Integration.dll
Syntax
public static class EndpointsConfigurationBuilderAddInboundExtensions
Remarks
Multiple calls to this methods will cause multiple consumers to be instantiated, which could mean multiple connections being issues and more resources being used (depending on the actual message broker implementation). The consumer endpoint might allow to define multiple endpoints at once, to efficiently instantiate a single consumer for all of them.
Methods
| Improve this doc View sourceAddInbound(IEndpointsConfigurationBuilder, IConsumerEndpoint, int)
Adds an inbound endpoint and instantiates a consumer.
Declaration
public static IEndpointsConfigurationBuilder AddInbound(this IEndpointsConfigurationBuilder endpointsConfigurationBuilder, IConsumerEndpoint endpoint, int consumersCount = 1)
Parameters
Type | Name | Description |
---|---|---|
IEndpointsConfigurationBuilder | endpointsConfigurationBuilder | |
IConsumerEndpoint | endpoint | The endpoint (topic). |
int | consumersCount | The number of consumers to be instantiated. The default is 1. |
Returns
Type | Description |
---|---|
IEndpointsConfigurationBuilder | The IEndpointsConfigurationBuilder so that additional calls can be chained. |
Remarks
Multiple calls to this methods will cause multiple consumers to be instantiated, which could mean multiple connections being issues and more resources being used (depending on the actual message broker implementation). The consumer endpoint might allow to define multiple endpoints at once, to efficiently instantiate a single consumer for all of them.