DispatchAmazon_IHostBuilderExtensions

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

Syntax

public static class DispatchAmazon_IHostBuilderExtensions

Inheritance

Methods

UseAmazonSQSProcessor

public static IHostBuilder UseAmazonSQSProcessor(this IHostBuilder builder, Action<AmazonSQSOptions> amazonSQSOptions)
Configures SimpleMessageBus to use Amazon SQS as the backing queue and registers the with the DI container.

Parameters

  • builder IHostBuilder: The instance to extend.
  • amazonSQSOptions Action<AmazonSQSOptions>: An that gives you a fluent interface for configuring the options for a queue backed by Amazon SQS.

Returns

IHostBuilder The instance being configured, for fluent interaction.

UseAmazonSQSProcessor

public static IHostBuilder UseAmazonSQSProcessor(this IHostBuilder builder)
Configures SimpleMessageBus to use Amazon SQS as the backing queue and registers the with the DI container.

Parameters

Returns

IHostBuilder The instance being configured, for fluent interaction.