You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @alexyakunin,
I'm working on integrating the Fusion library into my Blazor Server project to enable real-time interaction. I have already implemented user login and authentication using Identity.EntityFrameworkCore. However, I'm encountering an issue when injecting the Session service into a Blazor component.
Error:
When I try to inject the Session instance using the following syntax:
@injectSessionSession
...@Session.Id
I get the following error message:
System.InvalidOperationException: Property Session is not initialized.
Framework: Blazor Server
Identity Integration: Identity.EntityFrameworkCore is used for user login and authentication.
Additional Information:
If there are additional configurations or a different approach to session management that I should consider, I would greatly appreciate any advice on implementing this correctly.
Thank you for your assistance!
The text was updated successfully, but these errors were encountered:
The purpose of this code is to notify users when multiple users are viewing the same page simultaneously, creating a collaborative experience. This functionality is working well; however, I would like to leverage Fusion’s Session to differentiate between unique users more reliably. This is why I attempted to inject Session but encountered the initialization error above.
Hello @alexyakunin,
I'm working on integrating the Fusion library into my Blazor Server project to enable real-time interaction. I have already implemented user login and authentication using Identity.EntityFrameworkCore. However, I'm encountering an issue when injecting the Session service into a Blazor component.
Error:
When I try to inject the Session instance using the following syntax:
I get the following error message:
Configuration Code for Fusion Service:
Project Information:
Framework: Blazor Server
Identity Integration: Identity.EntityFrameworkCore is used for user login and authentication.
Additional Information:
If there are additional configurations or a different approach to session management that I should consider, I would greatly appreciate any advice on implementing this correctly.
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: