Skip to content

EventDispatcher.dispatch

Andrei Fangli edited this page Sep 3, 2023 · 2 revisions
API / EventDispatcher<TEventArgs> / dispatch method

Dispatches a notification to all subscribers.

This is a public method.

public unsubscribe(eventHandler: IEventHandler<TEventArgs>): void

Parameters

  • subject: object, the object raising the event, generally the object which is exposing it.
  • args: TEventArgs, a set of arguments that provide context for the event.
Clone this wiki locally