Removed explicit dependency resolution from the constructors of BackgroundTaskDispatcher and LocalBackgroundActivityScheduler classes, and used IServiceScopeFactory to resolve dependencies inside methods instead. Updated their lifetimes from Scoped to Singleton in the DI container in WorkflowRuntimeFeature. The DI container now manages the lifetime scope of these services, promoting better separation of responsibilities and improved testability. |
||
|---|---|---|
| .. | ||
| DefaultWorkflowRuntimeFeature.cs | ||
| WorkflowRuntimeFeature.cs | ||