Interface IEventDispatcherService
Service interface for dispatching events within the application.
Assembly: Serenity.Global.Application.dll
Syntax
public interface IEventDispatcherService : IService, IFoundationSettings
Methods
Dispatch(IEventDispatcherSignalDefinition)
Builds the signal described by the supplied Inspector-authored definition (e.g. a
ScriptableObject) and dispatches it to all subscribed listeners.
Declaration
void Dispatch(IEventDispatcherSignalDefinition signalDefinition)
Parameters
Dispatch(EventDispatcherSignal, Type)
Dispatches an event signal to all subscribed listeners, specifying the type of the signal.
Declaration
void Dispatch(EventDispatcherSignal signal, Type type)
Parameters
Dispatch<T>(T)
Dispatches an event signal to all subscribed listeners.
Declaration
void Dispatch<T>(T signal) where T : EventDispatcherSignal
Parameters
| Type |
Name |
Description |
| T |
signal |
|
Type Parameters
Subscribe<T>(EventDispatcherSignalDelegate)
Subscribes to a specific type of event signal.
Declaration
void Subscribe<T>(EventDispatcherSignalDelegate callback) where T : EventDispatcherSignal
Parameters
Type Parameters
Unsubscribe<T>(EventDispatcherSignalDelegate)
Unsubscribes from a specific type of event signal.
Declaration
void Unsubscribe<T>(EventDispatcherSignalDelegate callback) where T : EventDispatcherSignal
Parameters
Type Parameters