Closed MariaCobretti closed 2 years ago
@PascalSenn this should be a fairly easy thing. Can we get that in for 11.3.2 or 11.4.0?
Alternatively we could get this into the 12 previews since we are close to jump to 12.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'd like this functionality as well, please consider reopening. For my Blazor Server app, the authentication details are in scoped services, which are unreachable with everything being registered as singletons.
I would too please. Surely this is needed for a sharded multi-tenant app?
+1 = me tooooooo
Use case:
Following the above rules, it is not currently possible to use this library.
can we get an option to register StrawberryShake clients as scoped services? I have an issue with blazor where I want to add an AuthorizationMessageHandler to the strawberry http client which uses an IAccessTokenProvider thats gets registered by the blazor sdk as a scoped service. for blazor wasm there is no difference between singleton and scoped and for the hosted model, the http client should in fact be registered as scoped.
https://docs.microsoft.com/en-us/aspnet/core/blazor/fundamentals/dependency-injection?view=aspnetcore-3.1&pivots=webassembly#service-lifetime