Interface IBusControl
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
public interface IBusControl : IBus, IPublishEndpoint, IPublishEndpointProvider, IPublishObserverConnector, ISendEndpointProvider, ISendObserverConnector, IConsumePipeConnector, IRequestPipeConnector, IConsumeMessageObserverConnector, IConsumeObserverConnector, IReceiveObserverConnector, IReceiveEndpointObserverConnector, IReceiveConnector, IEndpointConfigurationObserverConnector, IProbeSite
- Inherited Members
- Extension Methods
Methods
CheckHealth()
Returns the health of the bus, including all receive endpoints
BusHealthResult CheckHealth()
Returns
StartAsync(CancellationToken)
Starts the bus (assuming the battery isn't dead). Once the bus has been started it cannot be started again, even after it has been stopped.
Task<BusHandle> StartAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken
Returns
- Task<BusHandle>
The BusHandle for the started bus. This is no longer needed, as calling Stop on the IBusControl will stop the bus equally well.
StopAsync(CancellationToken)
Stops the bus if it has been started. If the bus hasn't been started, the method returns without any warning.
Task StopAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken