This repository was archived by the owner on Feb 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Azure Function returns same instance for scoped service #74
Comments
Which version? The latest configures everything as Transient |
|
Related? Azure/azure-functions-host#3399 |
Ah - looks like it! |
Hitting the same wall at the moment with the Azure Functions hots. |
Hitting the same issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to use the new dependency injection features with Azure Functions where each invocation of the function should run within a dedicated scope. If I configure a scoped service, the instance injected into the function class is fine and changes each time the function is executed. However, the version injected into the request handler is always the same instance (singleton) and does not appear to be honoring the scope.
A sample project to repro the issue is attached: function_mediatr_test.zip
The text was updated successfully, but these errors were encountered: