PipelineTaskBase
public abstract class PipelineTaskBase : IPipelineAction, IPipelineTask
Inheritance
- interface IPipelineAction
- interface IPipelineTask
Namespace
Methods
Execute
Executes the pipeline task.
public abstract PipelineResult Execute(PipelineArgs args)
Parameters
Parameter | Description |
---|---|
args
|
The pipeline args.
|
Returns
A pipeline result.
Fail
Creates a fail pipeline result.
public virtual PipelineResult Fail()
Returns
A fail pipeline result.
Fail (1 of 3)
Creates a fail pipeline result.
public virtual PipelineResult Fail(object result)
Parameters
Parameter | Description |
---|---|
result
|
The result data.
|
Returns
A fail pipeline result.
Fail (2 of 3)
Creates a fail pipeline result.
public virtual PipelineResult Fail(object result, Exception exception)
Parameters
Parameter | Description |
---|---|
result
|
The result data.
|
exception
|
An exception message.
|
Returns
A fail pipeline result.
Fail (3 of 3)
Creates a fail pipeline result.
public virtual PipelineResult Fail(Exception exception)
Parameters
Parameter | Description |
---|---|
exception
|
An exception message.
|
Returns
A fail pipeline result.
Ok
Creates a success pipeline result.
public virtual PipelineResult Ok()
Returns
A success pipeline result.
Ok
Creates a success pipeline result.
public virtual PipelineResult Ok(object result)
Parameters
Parameter | Description |
---|---|
result
|
The result data.
|
Returns
A success pipeline result.