Update version in nuget config transforms (#85)

* Update the assembly version used in the nuget config transforms.

* Update 1.1 ==> 2.0 references in documentation as well.
This commit is contained in:
Steve Molloy 2023-03-08 18:01:39 -08:00 коммит произвёл GitHub
Родитель 8e980e8f0e
Коммит e44995db93
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
10 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

@ -16,7 +16,7 @@ Information on contributing to this repo is in the [Contributing Guide](CONTRIBU
<modules> <modules>
<!-- remove the existing Session state module --> <!-- remove the existing Session state module -->
<remove name="Session" /> <remove name="Session" />
<add name="Session" preCondition="integratedMode,managedHandler" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral" /> <add name="Session" preCondition="integratedMode,managedHandler" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=2.0.0.0, Culture=neutral" />
</modules> </modules>
</system.webServer> </system.webServer>
``` ```

Просмотреть файл

@ -10,7 +10,7 @@ Then, register your new provider like so:
<add name="CosmosDBSessionStateProviderAsync" cosmosDBEndPointSettingKey="cosmosDBEndPointSetting" cosmosDBAuthKeySettingKey="cosmosDBAuthKeySetting" <add name="CosmosDBSessionStateProviderAsync" cosmosDBEndPointSettingKey="cosmosDBEndPointSetting" cosmosDBAuthKeySettingKey="cosmosDBAuthKeySetting"
databaseId="[DataBaseId]" collectionId="[CollectionId]" offerThroughput="5000" connectionMode="Direct" requestTimeout="5" skipKeepAliveWhenUnused="false" databaseId="[DataBaseId]" collectionId="[CollectionId]" offerThroughput="5000" connectionMode="Direct" requestTimeout="5" skipKeepAliveWhenUnused="false"
maxConnectionLimit="50" maxRetryAttemptsOnThrottledRequests="10" maxRetryWaitTimeInSeconds="10" consistencyLevel="Session" preferredLocations="" maxConnectionLimit="50" maxRetryAttemptsOnThrottledRequests="10" maxRetryWaitTimeInSeconds="10" consistencyLevel="Session" preferredLocations=""
type="Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync, Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> type="Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync, Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</providers> </providers>
</sessionState> </sessionState>
``` ```

Просмотреть файл

@ -8,7 +8,7 @@ Before you can specify one of these custom providers. You need to remove the exi
<modules> <modules>
<!-- remove the existing Session state module --> <!-- remove the existing Session state module -->
<remove name="Session" /> <remove name="Session" />
<add name="Session" preCondition="integratedMode,managedHandler" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral" /> <add name="Session" preCondition="integratedMode,managedHandler" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=2.0.0.0, Culture=neutral" />
</modules> </modules>
</system.webServer> </system.webServer>
``` ```

Просмотреть файл

@ -10,7 +10,7 @@ Then, register your new provider like so:
<add name="SqlSessionStateProviderAsync" connectionStringName="DefaultConnection" sessionTableName="[string]" <add name="SqlSessionStateProviderAsync" connectionStringName="DefaultConnection" sessionTableName="[string]"
repositoryType="[SqlServer|InMemory|InMemoryDurable|FrameworkCompat]" repositoryType="[SqlServer|InMemory|InMemoryDurable|FrameworkCompat]"
maxRetryNumber="[int]" retryInterval="[int]" skipKeepAliveWhenUnused="false" maxRetryNumber="[int]" retryInterval="[int]" skipKeepAliveWhenUnused="false"
type="Microsoft.AspNet.SessionState.SqlSessionStateProviderAsync, Microsoft.AspNet.SessionState.SqlSessionStateProviderAsync, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> type="Microsoft.AspNet.SessionState.SqlSessionStateProviderAsync, Microsoft.AspNet.SessionState.SqlSessionStateProviderAsync, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</providers> </providers>
</sessionState> </sessionState>
``` ```

Просмотреть файл

@ -34,7 +34,7 @@
--> -->
<add name="CosmosDBSessionStateProviderAsync" cosmosDBEndPointSettingKey="cosmosDBEndPointSetting" cosmosDBAuthKeySettingKey="cosmosDBAuthKeySetting" databaseId="[DataBaseId]" containerId="[ContainerId]" offerThroughput="5000" <add name="CosmosDBSessionStateProviderAsync" cosmosDBEndPointSettingKey="cosmosDBEndPointSetting" cosmosDBAuthKeySettingKey="cosmosDBAuthKeySetting" databaseId="[DataBaseId]" containerId="[ContainerId]" offerThroughput="5000"
connectionMode="Direct" requestTimeout="5" maxConnectionLimit="50" maxRetryAttemptsOnThrottledRequests="10" maxRetryWaitTimeInSeconds="10" preferredLocations="" connectionMode="Direct" requestTimeout="5" maxConnectionLimit="50" maxRetryAttemptsOnThrottledRequests="10" maxRetryWaitTimeInSeconds="10" preferredLocations=""
type="Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync, Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" type="Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync, Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
xdt:Transform="InsertIfMissing" /> xdt:Transform="InsertIfMissing" />
</providers> </providers>
</sessionState> </sessionState>

Просмотреть файл

@ -9,7 +9,7 @@
mode="Custom" customProvider="CosmosDBSessionStateProviderAsync" xdt:Transform="Remove"> mode="Custom" customProvider="CosmosDBSessionStateProviderAsync" xdt:Transform="Remove">
<providers> <providers>
<add name="CosmosDBSessionStateProviderAsync" <add name="CosmosDBSessionStateProviderAsync"
type="Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync, Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" type="Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync, Microsoft.AspNet.SessionState.CosmosDBSessionStateProviderAsync, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
xdt:Transform="Remove" xdt:Locator="Match(type)" /> xdt:Transform="Remove" xdt:Locator="Match(type)" />
</providers> </providers>
</sessionState> </sessionState>

Просмотреть файл

@ -10,7 +10,7 @@
<modules> <modules>
<remove name="Session" xdt:Transform="InsertIfMissing" xdt:Locator="Match(name)" /> <remove name="Session" xdt:Transform="InsertIfMissing" xdt:Locator="Match(name)" />
<add name="Session" <add name="Session"
type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
preCondition="integratedMode,managedHandler" xdt:Transform="Insert" /> preCondition="integratedMode,managedHandler" xdt:Transform="Insert" />
</modules> </modules>
</system.webServer> </system.webServer>

Просмотреть файл

@ -5,7 +5,7 @@
<modules> <modules>
<remove name="Session" xdt:Transform="Remove" xdt:Locator="Match(name)" /> <remove name="Session" xdt:Transform="Remove" xdt:Locator="Match(name)" />
<add name="Session" <add name="Session"
type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
preCondition="integratedMode" xdt:Transform="Remove" xdt:Locator="Match(type)" /> preCondition="integratedMode" xdt:Transform="Remove" xdt:Locator="Match(type)" />
</modules> </modules>
</system.webServer> </system.webServer>

Просмотреть файл

@ -18,7 +18,7 @@
retryInterval = [integer] intervel(milliseconds) between retries retryInterval = [integer] intervel(milliseconds) between retries
--> -->
<add name="SqlSessionStateProviderAsync" connectionStringName="DefaultConnection" repositoryType="SqlServer" <add name="SqlSessionStateProviderAsync" connectionStringName="DefaultConnection" repositoryType="SqlServer"
type="Microsoft.AspNet.SessionState.SqlSessionStateProviderAsync, Microsoft.AspNet.SessionState.SqlSessionStateProviderAsync, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" type="Microsoft.AspNet.SessionState.SqlSessionStateProviderAsync, Microsoft.AspNet.SessionState.SqlSessionStateProviderAsync, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
xdt:Transform="InsertIfMissing" /> xdt:Transform="InsertIfMissing" />
</providers> </providers>
</sessionState> </sessionState>

Просмотреть файл

@ -6,7 +6,7 @@
mode="Custom" customProvider="SqlSessionStateAsyncProvider" xdt:Transform="Remove"> mode="Custom" customProvider="SqlSessionStateAsyncProvider" xdt:Transform="Remove">
<providers> <providers>
<add name="SqlSessionStateAsyncProvider" connectionStringName="DefaultConnection" <add name="SqlSessionStateAsyncProvider" connectionStringName="DefaultConnection"
type="Microsoft.AspNet.SessionState.SqlSessionStateAsyncProvider, Microsoft.AspNet.SessionState.SqlSessionStateAsyncProvider, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" type="Microsoft.AspNet.SessionState.SqlSessionStateAsyncProvider, Microsoft.AspNet.SessionState.SqlSessionStateAsyncProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
xdt:Transform="Remove" xdt:Locator="Match(type)" /> xdt:Transform="Remove" xdt:Locator="Match(type)" />
</providers> </providers>
</sessionState> </sessionState>