-
-
Notifications
You must be signed in to change notification settings - Fork 407
Fix Blazor context manager service config issue #4089
New issue
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
Comments
I started creating some unit tests with a config like this, and it works: builder.Services.AddCsla(o => o
.AddAspNetCore()
.AddServerSideBlazor(ssb => ssb.UseInMemoryApplicationContextManager = true)
.Security(so => so.FlowSecurityPrincipalFromClient = true)); This is all you should normally need to set up a Blazor server app. I'll test with the extra data portal config later, but that shouldn't be necessary at all. |
Thanks @rockfordlhotka. I converted everything to 8.2.5, and it's working fine now. I'm not sure what I was doing wrong before. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am working with Scoped Services that retrieve information using CSLA Business Objects. After upgrading to version 8.2.5, I encountered the following error:
Do not call GetAuthenticationStateAsync outside of the DI scope for a Razor component
I noticed that this issue might have been addressed in #3614 , but it still persists for me with the following configuration:
Can someone provide guidance on the proper configuration needed to call a CSLA Business Object from a Service within a Razor component?
Originally posted by @jmpotvin in #4088
The text was updated successfully, but these errors were encountered: