Executor

Helper class that allows you to execute one or more components.

Description

The Executor class allows you to execute one or more components.

Static methods

ExecuteAsync

Executes multiple components.

To be executed components must implement IExecutable interface. If they don’t the call to this method has no effect.
See IExecutable, Parameters

public static Task<List<object>> ExecuteAsync(string correlationId, IEnumerable components, Parameters args)

  • correlationId: string - (optional) transaction id to trace execution through call chain.
  • components: IEnumerable - a list of components that are to be executed.
  • args: Parameters - execution arguments.
  • returns: Task<List<object>> - an execution result

ExecuteOneAsync

Executes specific component.

To be executed components must implement IExecutable interface. If they don’t the call to this method has no effect.

public static Task<object> ExecuteOneAsync(string correlationId, object component, Parameters args)

  • correlationId: string - (optional) transaction id to trace execution through call chain.
  • component: object - the component that is to be executed.
  • args: Parameters - execution arguments.
  • returns: Task<object> - an execution result.

See also