Indigo.Functions
Indigo.Functions copied to clipboard
Support for scoped services?
Does this package support services with the scoped lifetime?
There are no scoped services in the samples, and when I try it myself, scoped services seem to be performing like singletons.
If these are not supported, please can you mention this in the readme.
I have had the same issue with scoped services.
Hmm, I could add support for scoped services, but do you mind sharing what is your use case for scoped instances?
The main challenge is to have a reliable way to detect when scope can be safely disposed, but Azure Functions doesn't provide a supported way right now. See: https://github.com/Azure/azure-webjobs-sdk/issues/1934 https://github.com/Azure/azure-functions-host/issues/3494 And of course change that broke the old way: https://github.com/Azure/azure-webjobs-sdk/issues/1865