Table of Contents

Interface BusHandle

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll

Returned once a bus has been started. Should call Stop or Dispose before the process can exit.

public interface BusHandle

Properties

Ready

A task which can be awaited to know when the bus is ready and all of the receive endpoints have reported ready.

Task<BusReady> Ready { get; }

Property Value

Task<BusReady>

Methods

StopAsync(CancellationToken)

Stop the bus and all receiving endpoints on the bus. Note that cancelling the Stop operation may leave the bus and/or one or more receive endpoints in an indeterminate state.

Task StopAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancel the stop operation in progress

Returns

Task

An awaitable task that is completed once everything is stopped