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