Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }