Skip to content

Commit

Permalink
#4469 Initialize session id on server path (#4471)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockfordlhotka authored Feb 6, 2025
1 parent 1b7e36b commit 6f10aaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Csla.Blazor/State/StateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ private async Task GetState(TimeSpan timeout)
var isBrowser = OperatingSystem.IsBrowser();
if (isBrowser)
_ = await _sessionManager.RetrieveSession(timeout);
else
_ = _sessionManager.GetSession();
}

/// <summary>
Expand All @@ -64,6 +66,8 @@ private async Task GetState(CancellationToken ct)
var isBrowser = OperatingSystem.IsBrowser();
if (isBrowser)
_ = await _sessionManager.RetrieveSession(ct);
else
_ = _sessionManager.GetSession();
}

/// <summary>
Expand Down

0 comments on commit 6f10aaa

Please sign in to comment.