public static void Run(int delay, RefreshFunctionDelegate refreshFunction) { var refreshWorkflow = WorkflowFacade.CreateNewWorkflow( typeof(RefreshWorkflow), new Dictionary<string, object> { { "Delay", delay }, { "RefreshFunction", refreshFunction } } ); refreshWorkflow.Start(); WorkflowFacade.RunWorkflow(refreshWorkflow); }
public static void Run(int delay, RefreshFunctionDelegate refreshFunction) { var refreshWorkflow = WorkflowFacade.CreateNewWorkflow( typeof(RefreshWorkflow), new Dictionary <string, object> { { "Delay", delay }, { "RefreshFunction", refreshFunction } } ); refreshWorkflow.Start(); WorkflowFacade.RunWorkflow(refreshWorkflow); }