Interface HostReceiveEndpointHandle
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
Returned when a receive endpoint is connected
public interface HostReceiveEndpointHandle
Properties
Ready
Completed when the endpoint has successfully started and is ready to consume messages.
Task<ReceiveEndpointReady> Ready { get; }
Property Value
ReceiveEndpoint
IReceiveEndpoint ReceiveEndpoint { get; }
Property Value
Methods
StopAsync(CancellationToken)
Stop the receive endpoint and remove it from the host. Once removed, the endpoint cannot be restarted using the ReceiveEndpoint property directly.
Task StopAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancel the stop operation in progress
Returns
- Task
Completed once the receive endpoint has stopped and been removed from the host