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
eventBusIEventBusThe event bus to extend.
eventItemTEventThe event to publish.
Type Parameters
TEventThe 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
eventBusIEventBusThe event bus to extend.
eventItemTEventThe event to publish.
Type Parameters
TEventThe type of the event to publish.