Skip to content

Commit 3ba10ee

Browse files
Initialize session id cookie on server path (#4470)
* #4469 Initialize session id cookie on server path * Update version to 8.2.9
1 parent 9240e16 commit 3ba10ee

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Source/Csla.Blazor/State/StateManager.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ namespace Csla.Blazor.State
1313
/// <summary>
1414
/// Get and save state from Blazor pages.
1515
/// </summary>
16+
/// <param name="sessionIdManager"></param>
1617
/// <param name="sessionManager"></param>
17-
public class StateManager(ISessionManager sessionManager)
18+
public class StateManager(ISessionIdManager sessionIdManager, ISessionManager sessionManager)
1819
{
1920
private readonly ISessionManager _sessionManager = sessionManager;
2021

@@ -41,10 +42,11 @@ public Task InitializeAsync(TimeSpan timeout)
4142
/// <param name="timeout">Time to wait before timing out</param>
4243
private async Task GetState(TimeSpan timeout)
4344
{
44-
Session session;
4545
var isBrowser = OperatingSystem.IsBrowser();
4646
if (isBrowser)
47-
session = await _sessionManager.RetrieveSession();
47+
_ = await _sessionManager.RetrieveSession();
48+
else
49+
_ = sessionIdManager.GetSessionId();
4850
}
4951

5052
/// <summary>

Source/Csla.Xaml.Uwp/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
// You can specify all the values or you can default the Build and Revision Numbers
2828
// by using the '*' as shown below:
2929
// [assembly: AssemblyVersion("1.0.*")]
30-
[assembly: AssemblyVersion("8.2.8.0")]
31-
[assembly: AssemblyFileVersion("8.2.8.0")]
30+
[assembly: AssemblyVersion("8.2.9.0")]
31+
[assembly: AssemblyFileVersion("8.2.9.0")]

Source/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<!-- Common Package Settings -->
88
<PropertyGroup>
9-
<Version>8.2.8.0</Version>
9+
<Version>8.2.9.0</Version>
1010
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1111
<PackageProjectUrl>https://cslanet.com</PackageProjectUrl>
1212
<RepositoryUrl>https://github.com/MarimerLLC/csla</RepositoryUrl>

0 commit comments

Comments
 (0)