elsa-core icon indicating copy to clipboard operation
elsa-core copied to clipboard

RunTask Activity Throws Cannot resolve scoped service

Open sfmskywalker opened this issue 1 year ago • 2 comments

When following the documentation on https://v3.elsaworkflows.io/docs/guides/external-app-integration the RunTask activity will throw an 'Cannot resolve scoped service 'Elsa.Workflows.Runtime.Services.BackgroundTaskDispatcher' from root provider.' exception due to a change in pull request #4753

sfmskywalker avatar Jan 08 '24 19:01 sfmskywalker

Looks like there are similar issues with the Azure Service module. Tried to get it to work in a separate project and ran into issue. Tried the same with the Alse.Samples.ASpNet.AzureServiceBusActivities but got the following exception

Elsa.AzureServiceBus.HostedServices.StartWorkers': Cannot consume scoped service 'Elsa.Workflows.Runtime.Contracts.ITriggerStore'

yspanj avatar Jan 09 '24 18:01 yspanj

Thanks for the additional information, much appreciated.

sfmskywalker avatar Jan 09 '24 19:01 sfmskywalker