Executing a pipeline
Injecting and Executing a Pipeline
Inject the Pipeline
public MyController(IPipeline<PipelineInputType, PipelineOutputType> pipeline)
{
_myPipeline = pipeline;
}Execute the Pipeline
var input = new PipelineInputType()
{
Property1 = true,
Property2 = 42,
Property3 = "Hello",
};
var response = await _myPipeline.Execute(input, token);
var output = response.EnsureSuccess();Last updated