Pip-Services-Commons-Dotnet
Static Public Member Functions | List of all members
PipServices3.Commons.Run.Executor Class Reference

Helper class that executes components. More...

Static Public Member Functions

static async Task< object > ExecuteOneAsync (string correlationId, object component, Parameters args)
 Executes specific component. To be executed components must implement IExecutable interface. If they don't the call to this method has no effect. More...
 
static async Task< List< object > > ExecuteAsync (string correlationId, IEnumerable components, Parameters args)
 Executes multiple components. To be executed components must implement IExecutable interface. If they don't the call to this method has no effect. More...
 

Detailed Description

Helper class that executes components.

See IExecutable

Member Function Documentation

◆ ExecuteAsync()

static async Task<List<object> > PipServices3.Commons.Run.Executor.ExecuteAsync ( string  correlationId,
IEnumerable  components,
Parameters  args 
)
static

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

Parameters
correlationId(optional) transaction id to trace execution through call chain.
componenta component to be executed
argsexecution arguments.
Returns
execution results

See ExecuteOneAsync(string, object, Parameters)

◆ ExecuteOneAsync()

static async Task<object> PipServices3.Commons.Run.Executor.ExecuteOneAsync ( string  correlationId,
object  component,
Parameters  args 
)
static

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

Parameters
correlationId(optional) transaction id to trace execution through call chain.
componenta component to be executed
argsexecution arguments.
Returns
execution results

See IExecutable, Parameters


The documentation for this class was generated from the following file: