elsa-workflows / elsa-core

A .NET workflows library
https://v3.elsaworkflows.io/
MIT License
6.23k stars 1.14k forks source link

AzureServiceBus : Elsa.AzureServiceBus.HostedServices.StartWorkers need scoped services #5178

Closed jdevillard closed 2 months ago

jdevillard commented 5 months ago

Due to recent changes regarding the development of the multi-tenancy,

the Elsa.AzureServiceBus.HostedServices.StartWorkers hosted service need to be change to inject IServiceScopeFactory and create a scope.

Also Elsa.AzureServiceBus.Services.ServiceBusInitializer need to use scoped services.

sfmskywalker commented 2 months ago

I believe this has been fixed with the merge of multitenancy into main.

Junu09876 commented 2 months ago

[ { "action": { "callType": "call", "from": "0x206a42d08ab071a69a0204cf25cc2e4eeee93e87", "gas": "0x13DD", "input": "0x", "to": "0x12945acC7273d6D4e71340D2C55E7E05f9c7f317", "value": "0x1BC16D674EC80000" }, "result": { "gasUsed": "0x4BFBDDF", "output": "0x" }, "subtraces": 0, "traceAddress": [], "type": "call" } ]