Update README and enhance ScheduleActivityExecutionContextTests with cancellation token
This commit is contained in:
parent
e8cd3cded5
commit
1361138443
|
|
@ -1,4 +1,4 @@
|
|||
# ELSA 3.0
|
||||
# ELSA 3
|
||||
|
||||

|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public class ScheduleActivityExecutionContextTests(ITestOutputHelper testOutputH
|
|||
};
|
||||
var workflowGraphBuilder = _serviceProvider.GetRequiredService<IWorkflowGraphBuilder>();
|
||||
var workflowGraph = await workflowGraphBuilder.BuildAsync(workflow);
|
||||
var workflowExecutionContext = await WorkflowExecutionContext.CreateAsync(_serviceProvider, workflowGraph, "test");
|
||||
var workflowExecutionContext = await WorkflowExecutionContext.CreateAsync(_serviceProvider, workflowGraph, "test", CancellationToken.None);
|
||||
var activityExecutionContext = await workflowExecutionContext.CreateActivityExecutionContextAsync(writeLineA);
|
||||
|
||||
await Assert.ThrowsAsync<InvalidOperationException>(() => activityExecutionContext.ScheduleActivityAsync(writeLineB).AsTask());
|
||||
|
|
|
|||
Loading…
Reference in a new issue