IHostBuilderExtensions

A set of extension methods that make it easy to register SimpleMessageBus with a DI container.

Syntax

public static class IHostBuilderExtensions

Inheritance

Methods

UseAzureStorageQueueProcessor

public static IHostBuilder UseAzureStorageQueueProcessor(this IHostBuilder builder, Action<AzureStorageQueueOptions> azureQueueOptions)
Configures SimpleMessageBus to use Azure Storage Queues as the backing queue and registers the with the DI container.

Parameters

Returns

IHostBuilder The instance being configured, for fluent interaction.

UseAzureStorageQueueProcessor

public static IHostBuilder UseAzureStorageQueueProcessor(this IHostBuilder builder)
Configures SimpleMessageBus to use Azure Storage Queues as the backing queue and registers the with the DI container.

Parameters

Returns

IHostBuilder The instance being configured, for fluent interaction.

UseOrderedMessageDispatcher

public static IHostBuilder UseOrderedMessageDispatcher(this IHostBuilder builder)
Configures SimpleMessageBus to use the , which processes registered in series based on the order they were registered in the DI container.

Parameters

Returns

IHostBuilder The instance being configured, for fluent interaction.

UseParallelMessageDispatcher

public static IHostBuilder UseParallelMessageDispatcher(this IHostBuilder builder)
Configures SimpleMessageBus to use the , which processes registered in parallel regardless of the order the order they were registered in the DI container.

Parameters

Returns

IHostBuilder The instance being configured, for fluent interaction.