EventHub.RaiseEvent

Will raise an event to any subscribers of the event

Example

var eventHub = new EventHub(); eventHub.RaiseEvent("name-changed", { name: "Bob" });

(Void) RaiseEvent(eventType(String) The event type to raise , eventArg(Object) A custom object containing contextual event information )

Param

  • eventType

    (String)

    The event type to raise

  • eventArg

    (Object)

    A custom object containing contextual event information