SimpleTaskChain - slavikdev/sharp-patterns GitHub Wiki

The chain which executes tasks in the order they were passed. This class implements the chain of responsibility pattern which is used to split a process to smaller parts. Tasks passed to this chain don’t return result.

new SimpleTaskChain( 
  new ClearDatabaseTask(),
  new SetupDatabaseSchemaTask( list )
).Run();