Table of Contents

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

builder EventBusBuilder

The event bus builder to add the consumers to.

assemblies Assembly[]

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

builder EventBusBuilder

The event bus builder to add the consumer to.

Returns

EventBusBuilder

The event bus builder with the consumer added.

Type Parameters

TConsumer

The type of the consumer to add.