And what do I do if I need other dependencies injected to do the task? I need it to start when the Application comes up, so that when it's injected the result will already be there...
g
gildor
01/27/2022, 2:06 PM
You just inject them to this provide method
Though it looks that it would be better to encapsulate it to a class instead of trying to work with scopes and deferred on level of DI
d
dave08
01/27/2022, 2:08 PM
Yeah, in the case where I'd need dependencies, you're probably right...