Table of Contents

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 IBus
busReady Task<BusReady>

A task which is completed once the bus is ready and all receive endpoints are ready.

Returns

Task

PostStop(IBus)

Called when the bus has been stopped.

Task PostStop(IBus bus)

Parameters

bus IBus

Returns

Task

PreStart(IBus)

Called when the bus is being started, before the actual Start commences.

Task PreStart(IBus bus)

Parameters

bus IBus

Returns

Task

PreStop(IBus)

Called when the bus is being stopped, before the actual Stop commences.

Task PreStop(IBus bus)

Parameters

bus IBus

Returns

Task

StartFaulted(IBus, Exception)

Called when the bus fails to start

Task StartFaulted(IBus bus, Exception exception)

Parameters

bus IBus
exception Exception

Returns

Task

StopFaulted(IBus, Exception)

Called when the bus failed to Stop.

Task StopFaulted(IBus bus, Exception exception)

Parameters

bus IBus
exception Exception

Returns

Task