Interface IEndpointDefinition
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
Defines an endpoint in a transport-independent way
public interface IEndpointDefinition
Properties
ConcurrentMessageLimit
The maximum number of concurrent messages which can be delivered at any one time. This should be set by an endpoint before modifying the prefetch count. If this is specified, and PrefetchCount is left default, it will calculate an effective prefetch count automatically when supported.
int? ConcurrentMessageLimit { get; }
Property Value
- int?
ConfigureConsumeTopology
If true, configure the broker topology, which may include binding exchanges, subscribing to topics, etc.
bool ConfigureConsumeTopology { get; }
Property Value
IsTemporary
True if the endpoint is temporary, and should be removed when the bus/endpoint is stopped. Temporary queues should be configured as auto-delete, non-durable, express, whatever creates the least impact and fastest performance.
bool IsTemporary { get; }
Property Value
PrefetchCount
The number of messages to fetch in advance from the broker, if applicable. This should only be set when necessary, use the ConcurrentMessageLimit initially.
int? PrefetchCount { get; }
Property Value
- int?
Methods
Configure<T>(T)
Configure the endpoint, as provided by the transport-specific receive endpoint configurator
void Configure<T>(T configurator) where T : IReceiveEndpointConfigurator
Parameters
configurator
T
Type Parameters
T
GetEndpointName(IEndpointNameFormatter)
Return the endpoint name for the consumer, using the specified formatter if necessary.
string GetEndpointName(IEndpointNameFormatter formatter)
Parameters
formatter
IEndpointNameFormatter