private void ExecuteWorkflow_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrWhiteSpace(WorkflowPath)) { MessageBox.Show("Please choose a workflow to execute"); return; } using (WorkflowRemoteInvoker invoker = new WorkflowRemoteInvoker(GeneratedGuid.ToString())) { var xamlWorkflow = File.ReadAllText(WorkflowPath); // Execute workflow IDictionary<string, object> outputArguments = invoker.Invoke(xamlWorkflow, null); // Close manually started UiLauncher invoker.CloseService(); } }
private void ExecuteWorkflow_Click(object sender, RoutedEventArgs e) { if (string.IsNullOrWhiteSpace(WorkflowPath)) { MessageBox.Show("Please choose a workflow to execute"); return; } using (WorkflowRemoteInvoker invoker = new WorkflowRemoteInvoker(GeneratedGuid.ToString())) { var xamlWorkflow = File.ReadAllText(WorkflowPath); // Execute workflow IDictionary <string, object> outputArguments = invoker.Invoke(xamlWorkflow, null); // Close manually started UiLauncher invoker.CloseService(); } }