public void Execute() { try { InnerExecute(); NextStep.Execute(); } catch { OnErrorStep.Execute(); } }
public override DTOModelB Execute(DTOModelB dtoModelB) { // Read // Do // Write if (NextStep != null) { NextStep.Execute(dtoModelB); } return(dtoModelB); }
public override DTOModelA Execute(DTOModelA dtoModelA) { // Read // Do // Write if (NextStep != null) { dtoModelA = NextStep.Execute(dtoModelA); } return(dtoModelA); }
public override DTOModelA Execute(DTOModelA dtoModelA) { // Read // Do dtoModelA.Name = "pippo"; // Write ABaseStep_CoreStoreInstance.CoreStore_DataSupplierInstance.GetActionRepositoryA.CreateValue(dtoModelA); if (NextStep != null) { dtoModelA = NextStep.Execute(dtoModelA); } return(dtoModelA); }
public override DTOModelB Execute(DTOModelB dtoModelB) { // Read dtoModelB = ABaseStep_CoreStoreInstance.CoreStore_DataSupplierInstance.GetActionRepositoryB.ReadValue(dtoModelB); // Do dtoModelB.Email = "*****@*****.**"; // Write ABaseStep_CoreStoreInstance.CoreStore_DataSupplierInstance.GetActionRepositoryB.CreateValue(dtoModelB); if (NextStep != null) { dtoModelB = NextStep.Execute(dtoModelB); } return(dtoModelB); }
public override async Task MainAction(BotUpdate update, IBotClient client) { await NextStep.Execute(update, client); NextStep = NextStep.NextStep; }