Table of Contents

Interface IMessageBusProvider

Namespace
Excalibur.Dispatch.Transport
Assembly
Excalibur.Dispatch.Abstractions.dll

Provides access to registered message bus instances, both local and remote.

public interface IMessageBusProvider
Extension Methods

Methods

GetAllMessageBusNames()

Gets the names of all registered message buses.

IEnumerable<string> GetAllMessageBusNames()

Returns

IEnumerable<string>

A collection of message bus names.

GetAllMessageBuses()

Gets all registered message buses.

IEnumerable<IMessageBus> GetAllMessageBuses()

Returns

IEnumerable<IMessageBus>

A collection of all registered message bus instances.

GetMessageBus(string)

Gets a registered message bus by name.

IMessageBus? GetMessageBus(string name)

Parameters

name string

The name of the message bus to retrieve.

Returns

IMessageBus

The message bus instance if found; otherwise, null.

GetRemoteMessageBus(string)

Gets a registered remote message bus by name.

IMessageBus? GetRemoteMessageBus(string name)

Parameters

name string

The name of the remote message bus to retrieve.

Returns

IMessageBus

The remote message bus instance if found; otherwise, null.

TryGet(string, out IMessageBus?)

Attempts to get a message bus by name.

bool TryGet(string name, out IMessageBus? bus)

Parameters

name string

The name of the message bus to retrieve.

bus IMessageBus

When this method returns, contains the message bus instance if found; otherwise, null.

Returns

bool

true if the message bus was found; otherwise, false.