Interface IBusObserver
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
Used to observe events produced by the bus
public interface IBusObserver
Methods
CreateFaulted(Exception)
Called when the bus fails to be created
void CreateFaulted(Exception exception)
Parameters
exception
Exception
PostCreate(IBus)
Called after the bus has been created.
void PostCreate(IBus bus)
Parameters
bus
IBus
PostStart(IBus, Task<BusReady>)
Called once the bus has started and is running
Task PostStart(IBus bus, Task<BusReady> busReady)
Parameters
bus
IBusbusReady
Task<BusReady>A task which is completed once the bus is ready and all receive endpoints are ready.
Returns
PostStop(IBus)
Called when the bus has been stopped.
Task PostStop(IBus bus)
Parameters
bus
IBus
Returns
PreStart(IBus)
Called when the bus is being started, before the actual Start commences.
Task PreStart(IBus bus)
Parameters
bus
IBus
Returns
PreStop(IBus)
Called when the bus is being stopped, before the actual Stop commences.
Task PreStop(IBus bus)
Parameters
bus
IBus
Returns
StartFaulted(IBus, Exception)
Called when the bus fails to start
Task StartFaulted(IBus bus, Exception exception)
Parameters
Returns
StopFaulted(IBus, Exception)
Called when the bus failed to Stop.
Task StopFaulted(IBus bus, Exception exception)