File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
src/samples/WorkflowCore.Sample13 Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Workflow Core 1.3.2
2
+
3
+ * Added ` WorkflowController ` service
4
+
5
+ Use the ` WorkflowController ` service to control workflows without having to run an exection node.
6
+
7
+ ``` c#
8
+ var controller = serviceProvider .GetService <IWorkflowController >();
9
+ ```
10
+
11
+ ## Exposed methods
12
+ * StartWorkflow
13
+ * PublishEvent
14
+ * RegisterWorkflow
15
+ * SuspendWorkflow
16
+ * ResumeWorkflow
17
+ * TerminateWorkflow
Original file line number Diff line number Diff line change @@ -17,11 +17,13 @@ public static void Main(string[] args)
17
17
18
18
//start the workflow host
19
19
var host = serviceProvider . GetService < IWorkflowHost > ( ) ;
20
- host . RegisterWorkflow < ParallelWorkflow , MyData > ( ) ;
20
+ var controller = serviceProvider . GetService < IWorkflowController > ( ) ;
21
+ controller . RegisterWorkflow < ParallelWorkflow , MyData > ( ) ;
22
+
21
23
host . Start ( ) ;
22
24
23
25
Console . WriteLine ( "Starting workflow..." ) ;
24
- host . StartWorkflow ( "parallel-sample" ) ;
26
+ controller . StartWorkflow ( "parallel-sample" ) ;
25
27
26
28
Console . ReadLine ( ) ;
27
29
host . Stop ( ) ;
You can’t perform that action at this time.
0 commit comments