We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when using the ctor IHttpContextAccessor is regitered as a singleton https://github.com/JasperFx/alba/blob/master/src/Alba/AlbaHost.cs#L65
IHttpContextAccessor
when using the For task based api its registered as scoped https://github.com/JasperFx/alba/blob/master/src/Alba/AlbaHost.cs#L290
For
When trying to switch I'm now getting errors like Cannot consume scoped service 'Microsoft.AspNetCore.Http.IHttpContextAccessor' from singleton ...
Cannot consume scoped service 'Microsoft.AspNetCore.Http.IHttpContextAccessor' from singleton ...
Why don't they have the same lifetime ?
The text was updated successfully, but these errors were encountered:
Good spot, will fix this now.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
when using the ctor
IHttpContextAccessor
is regitered as a singletonhttps://github.com/JasperFx/alba/blob/master/src/Alba/AlbaHost.cs#L65
when using the
For
task based api its registered as scopedhttps://github.com/JasperFx/alba/blob/master/src/Alba/AlbaHost.cs#L290
When trying to switch I'm now getting errors like
Cannot consume scoped service 'Microsoft.AspNetCore.Http.IHttpContextAccessor' from singleton ...
Why don't they have the same lifetime ?
The text was updated successfully, but these errors were encountered: