SimpleMessageBus_Hosting_IHostBuilderExtensions

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

Syntax

public static class SimpleMessageBus_Hosting_IHostBuilderExtensions

Inheritance

Methods

UseSimpleMessageBusLifetime

public static IHostBuilder UseSimpleMessageBusLifetime(this IHostBuilder builder)
Configures SimpleMessageBus to use either the or the depending on the currently-running context.

Parameters

Returns

IHostBuilder The instance being configured, for fluent interaction.

Remarks

These extensions provide hosting utilities for SimpleMessageBus applications, particularly for scenarios where the application needs to run as either a Windows Service or a console application depending on the execution context.