notify static method

void notify(
  1. String? correlationId,
  2. List? components,
  3. Parameters args
)

Notifies multiple components.

To be notified 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.
  • components a list of components that are to be notified.
  • args notification arguments.

See notifyOne See INotifiable

Implementation

static void notify(String? correlationId, List? components, Parameters args) {
  if (components == null) return;

  for (var component in components) {
    Notifier.notifyOne(correlationId, component, args);
  }
}