Class EventBusBuilderExtensions
- Namespace
- ReflectionEventing
- Assembly
- ReflectionEventing.dll
Provides extension methods for the EventBusBuilder class.
public static class EventBusBuilderExtensions
- Inheritance
-
EventBusBuilderExtensions
- Inherited Members
Methods
AddAllConsumers(EventBusBuilder, params Assembly[])
Adds all consumers from the specified assemblies to the event bus builder.
public static EventBusBuilder AddAllConsumers(this EventBusBuilder builder, params Assembly[] assemblies)
Parameters
builderEventBusBuilderThe event bus builder to add the consumers to.
assembliesAssembly[]The assemblies to add the consumers from.
Returns
- EventBusBuilder
The event bus builder with the consumers added.
AddConsumer<TConsumer>(EventBusBuilder)
Adds a consumer to the event bus builder.
public static EventBusBuilder AddConsumer<TConsumer>(this EventBusBuilder builder)
Parameters
builderEventBusBuilderThe event bus builder to add the consumer to.
Returns
- EventBusBuilder
The event bus builder with the consumer added.
Type Parameters
TConsumerThe type of the consumer to add.