DEV Community

Discussion on: Pipeline pattern - implementation

Collapse
 
atimoshevsky profile image
atimoshevsky • Edited

Robert, your interface IPipeStep has method Execute
public interface IPipeStep
{
Task Execute(TPipeModel pipeModel);
}

but in the loop of the steps, you are calling ExecuteAsync.

public async Task ExecuteAsync(TPipeModel pipeModel)
{
foreach (var pipeStep in _pipeSteps)
{
await pipeStep.Invoke().ExecuteAsync(pipeModel);
}
}

You should rename Execute to ExecuteAsync in the IPipeStep

Collapse
 
rwasik profile image
Robert

You're right! Thanks. It's already updated.