Esempio n. 1
0
        private static void EventSample(IWorkflowRegistry registry, IWorkflowRuntime runtime)
        {
            runtime.StartWorkflow("EventSampleWorkflow", 1, new MyDataClass());

            Console.WriteLine("Enter value");
            string value = Console.ReadLine();

            runtime.PublishEvent("MyEvent", "0", value);
            Console.ReadLine();
        }