private static void Main(string[] args) { try { var res = new ConfigurableWorkflow().StartWith((ctx) => { if (ctx != null) { ctx.NextValue = DateTimeOffset.Now; } }) .ContinueWith((ctx) => { if (ctx != null) { ctx.Result = ctx.PreviousValue; } }).Execute(); if (res != null) { } } catch (Exception ex) { Console.WriteLine("[ERROR]: {0}", ex.GetBaseException()); } Console.WriteLine(); Console.WriteLine(); Console.WriteLine("===== ENTER ====="); Console.ReadLine(); }
internal WorkflowConfig(ConfigurableWorkflow workflow, WorkflowAction action, WorkflowConfig parent = null) { Workflow = workflow; ACTION = action; PARENT = parent; }