Skip to content
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

Initialize session id cookie on server path #4470

Merged
merged 2 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading