Skip to content

Commit 2622482

Browse files
Update version 2.1 (#118)
* Update package versions to 2.1. * Doc update. * Do a preview release first; there are some significant code changes to let breath before stamping 'rtm'
1 parent 16e338e commit 2622482

5 files changed

Lines changed: 13 additions & 11 deletions

Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ The specific settings available for the new session state module and providers a
3636
- [Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync](docs/CosmosDBSessionStateProviderAsync.md)
3737

3838
<a name="updates"></a>
39+
## V2.1 Updates:
40+
* New `ISessionStateItemCollection` implementations for concurrent access. The `SessionStateItemCollection` that comes in the framework is not thread-safe and can cause issues when multiple threads are trying to access the same session state, which is something that is allowed with this package and the `AllowConcurrentRequestsPerSession` setting. When this feature is enabled, the providers in this repo will use the new thread-safe implementations: `ConcurrentNonSerializingSessionStateItemCollection` for the In-Proc provider, since it does not need to serialize session state data, and `ConcurrentSessionStateItemCollection` for the SQL and CosmosDB providers, since they do need to serialize session state data. This latter implementation is as direct of a port from the .Net framework as possible while fixing the concurrency issue with the original implementaiton.
3941
## V2.0 Updates:
4042
* :warning: ***Breaking Change*** - CosmosDB partition-related parameters are ignored. All containers use `/id` as the partition path now. Using an existing container with a different partition key path will result in exceptions. `partitionKeyPath` and `partitionNumUsedByProvider` are now ignored.
4143
> The original design around partition use in the CosmosDB provider was influenced by experience with the older SQL partition paradigms. There was an effort to enable them for scalability, but keep them reasonable for managability. In reality, CosmosDB encourages the use of as many "logical" partitions as can be used so long as they make sense. The complexity of managing and scaling is all handled magically by CosmosDB.

tools/CosmosDBSessionStateProviderAsync.settings.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project DefaultTargets="UnitTest" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22

33
<PropertyGroup>
4-
<BuildQuality Condition="'$(BuildQuality)' == ''">rtm</BuildQuality>
4+
<BuildQuality Condition="'$(BuildQuality)' == ''">preview1</BuildQuality>
55
<VersionMajor>2</VersionMajor>
6-
<VersionMinor>0</VersionMinor>
6+
<VersionMinor>1</VersionMinor>
77
<VersionRelease>0</VersionRelease>
88
</PropertyGroup>
99

1010
<PropertyGroup Label="NuGet package dependencies">
11-
<SessionStateModuleNuGetPackageVersion>2.0.0</SessionStateModuleNuGetPackageVersion>
11+
<SessionStateModuleNuGetPackageVersion>2.1.0</SessionStateModuleNuGetPackageVersion>
1212
<CosmosNuGetPackageVersion>3.46.1</CosmosNuGetPackageVersion>
1313
<SystemTextJsonPackageVersion>8.0.5</SystemTextJsonPackageVersion>
1414
</PropertyGroup>

tools/MicrosoftAspNetSessionState.settings.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
2626
Most of the interesting ones are already set in each project's individual settings file.
2727
-->
28-
<BuildQuality Condition="'$(BuildQuality)' == ''">rtm</BuildQuality>
29-
<VersionStartYear Condition="'$(VersionStartYear)' == ''">2023</VersionStartYear>
28+
<BuildQuality Condition="'$(BuildQuality)' == ''">preview1</BuildQuality>
29+
<VersionStartYear Condition="'$(VersionStartYear)' == ''">2025</VersionStartYear>
3030
<VersionMajor Condition="'$(VersionMajor)' == ''">2</VersionMajor>
31-
<VersionMinor Condition="'$(VersionMinor)' == ''">0</VersionMinor>
31+
<VersionMinor Condition="'$(VersionMinor)' == ''">1</VersionMinor>
3232
<VersionRevision Condition="'$(VersionRevision)' == ''">0</VersionRevision>
3333
<VersionRelease Condition="'$(VersionRelease)' == ''">0</VersionRelease>
3434
<VersionBuild Condition="'$(VersionBuild)' == '' OR '$(VersionBuild)' == '0'">$([MSBuild]::Add(1, $([MSBuild]::Subtract($([System.DateTime]::Now.Year), $(VersionStartYear)))))$([System.DateTime]::Now.ToString("MMdd"))</VersionBuild>

tools/SessionStateModule.settings.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project DefaultTargets="UnitTest" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22

33
<PropertyGroup>
4-
<BuildQuality Condition="'$(BuildQuality)' == ''">rtm</BuildQuality>
4+
<BuildQuality Condition="'$(BuildQuality)' == ''">preview1</BuildQuality>
55
<VersionMajor>2</VersionMajor>
6-
<VersionMinor>0</VersionMinor>
6+
<VersionMinor>1</VersionMinor>
77
<VersionRelease>0</VersionRelease>
88
</PropertyGroup>
99

tools/SqlSessionStateProviderAsync.settings.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<Project DefaultTargets="UnitTest" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22

33
<PropertyGroup>
4-
<BuildQuality Condition="'$(BuildQuality)' == ''">rtm</BuildQuality>
4+
<BuildQuality Condition="'$(BuildQuality)' == ''">preview1</BuildQuality>
55
<VersionMajor>2</VersionMajor>
6-
<VersionMinor>0</VersionMinor>
6+
<VersionMinor>1</VersionMinor>
77
<VersionRelease>0</VersionRelease>
88
</PropertyGroup>
99

1010
<PropertyGroup Label="NuGet package dependencies">
11-
<SessionStateModuleNuGetPackageVersion>2.0.0</SessionStateModuleNuGetPackageVersion>
11+
<SessionStateModuleNuGetPackageVersion>2.1.0</SessionStateModuleNuGetPackageVersion>
1212
<MicrosoftDataSqlClientPackageVersion>5.1.6</MicrosoftDataSqlClientPackageVersion>
1313
</PropertyGroup>
1414

0 commit comments

Comments
 (0)