Skip to content

Commit

Permalink
Initialize session id cookie on server path (#4470)
Browse files Browse the repository at this point in the history
* #4469 Initialize session id cookie on server path

* Update version to 8.2.9
  • Loading branch information
rockfordlhotka authored Feb 6, 2025
1 parent 9240e16 commit 3ba10ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Source/Csla.Blazor/State/StateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ namespace Csla.Blazor.State
/// <summary>
/// Get and save state from Blazor pages.
/// </summary>
/// <param name="sessionIdManager"></param>
/// <param name="sessionManager"></param>
public class StateManager(ISessionManager sessionManager)
public class StateManager(ISessionIdManager sessionIdManager, ISessionManager sessionManager)
{
private readonly ISessionManager _sessionManager = sessionManager;

Expand All @@ -41,10 +42,11 @@ public Task InitializeAsync(TimeSpan timeout)
/// <param name="timeout">Time to wait before timing out</param>
private async Task GetState(TimeSpan timeout)
{
Session session;
var isBrowser = OperatingSystem.IsBrowser();
if (isBrowser)
session = await _sessionManager.RetrieveSession();
_ = await _sessionManager.RetrieveSession();
else
_ = sessionIdManager.GetSessionId();
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Source/Csla.Xaml.Uwp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("8.2.8.0")]
[assembly: AssemblyFileVersion("8.2.8.0")]
[assembly: AssemblyVersion("8.2.9.0")]
[assembly: AssemblyFileVersion("8.2.9.0")]
2 changes: 1 addition & 1 deletion Source/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<!-- Common Package Settings -->
<PropertyGroup>
<Version>8.2.8.0</Version>
<Version>8.2.9.0</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://cslanet.com</PackageProjectUrl>
<RepositoryUrl>https://github.com/MarimerLLC/csla</RepositoryUrl>
Expand Down

0 comments on commit 3ba10ee

Please sign in to comment.