Table of Contents

Class EventBusExtensions

Namespace
ReflectionEventing
Assembly
ReflectionEventing.dll

Provides extension methods for the IEventBus.

public static class EventBusExtensions
Inheritance
EventBusExtensions
Inherited Members

Methods

Publish<TEvent>(IEventBus, TEvent)

Publishes the specified event synchronously.

[Obsolete("May cause deadlock on UI threads, use SendAsync instead.")]
public static void Publish<TEvent>(this IEventBus eventBus, TEvent eventItem) where TEvent : class

Parameters

eventBus IEventBus

The event bus to extend.

eventItem TEvent

The event to publish.

Type Parameters

TEvent

The type of the event to publish.

Send<TEvent>(IEventBus, TEvent)

Sends the specified event synchronously.

[Obsolete("May cause deadlock on UI threads, use SendAsync instead.")]
public static void Send<TEvent>(this IEventBus eventBus, TEvent eventItem) where TEvent : class

Parameters

eventBus IEventBus

The event bus to extend.

eventItem TEvent

The event to publish.

Type Parameters

TEvent

The type of the event to publish.