notifyOne static method

void notifyOne(
  1. String? correlationId,
  2. dynamic component,
  3. Parameters args
)

Notifies specific component.

To be notiied components must implement INotifiable interface. If they don't the call to this method has no effect.

  • correlationId (optional) transaction id to trace execution through call chain.
  • component the component that is to be notified.
  • args notifiation arguments.

See INotifiable

Implementation

static void notifyOne(String? correlationId, component, Parameters args) {
  if (component is INotifiable) component.notify(correlationId, args);
}