| | | 1 | | |
| | | 2 | | |
| | | 3 | | |
| | | 4 | | |
| | | 5 | | using Elsa.Workflows.Middleware.Activities; |
| | | 6 | | // ReSharper disable once CheckNamespace |
| | | 7 | | using Elsa.Workflows.Features; |
| | | 8 | | |
| | | 9 | | // ReSharper disable once CheckNamespace |
| | | 10 | | namespace Elsa.Extensions; |
| | | 11 | | |
| | | 12 | | /// <summary> |
| | | 13 | | /// Adds an extension method to the <see cref="WorkflowsFeature"/> that installs a default workflow runtime execution pi |
| | | 14 | | /// </summary> |
| | | 15 | | public static class WorkflowsFeatureExtensions |
| | | 16 | | { |
| | | 17 | | /// <summary> |
| | | 18 | | /// Installs a default workflow runtime execution pipeline. |
| | | 19 | | /// </summary> |
| | | 20 | | public static WorkflowsFeature WithDefaultWorkflowExecutionPipeline(this WorkflowsFeature workflowsFeature) => |
| | 172 | 21 | | workflowsFeature.WithWorkflowExecutionPipeline(pipeline => |
| | 611 | 22 | | pipeline.UseDefaultPipeline()); |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Installs an activity invoker that can run activities asynchronously in the background. |
| | | 26 | | /// </summary> |
| | | 27 | | public static WorkflowsFeature WithBackgroundActivityExecutionPipeline(this WorkflowsFeature workflowsFeature) => |
| | 0 | 28 | | workflowsFeature.WithActivityExecutionPipeline(pipeline => |
| | 0 | 29 | | pipeline |
| | 0 | 30 | | .UseExceptionHandling() |
| | 0 | 31 | | .UseLogPersistenceModeEvaluation() |
| | 0 | 32 | | .UseExecutionLogging() |
| | 0 | 33 | | .UseNotifications() |
| | 0 | 34 | | .UseBackgroundActivityInvoker()); |
| | | 35 | | } |