Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface INotifiable

Interface for components that can be asynchronously notified. The notification may include optional argument that describe the occured event.

see

Notifier

see

IExecutable

Example

class MyComponent implements INotifable {
    ...
    public notify(correlationId: string, args: Parameters): void {
        console.log("Occured event " + args.getAsString("event"));
    }
}

let myComponent = new MyComponent();

myComponent.notify("123", Parameters.fromTuples("event", "Test Event"));

Hierarchy

Index

Methods

Methods

notify

  • notify(correlationId: string, args: Parameters): void
  • Notifies the component about occured event.

    Parameters

    • correlationId: string

      (optional) transaction id to trace execution through call chain.

    • args: Parameters

      notification arguments.

    Returns void

Generated using TypeDoc