Update REDIS
This commit is contained in:
@@ -60,9 +60,12 @@
|
||||
<HintPath>..\packages\elmah.corelibrary.1.2.2\lib\Elmah.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.AspNet.SessionState.SessionStateModule.1.1.0\lib\Net462\Microsoft.AspNet.SessionState.SessionStateModule.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="Microsoft.Web.RedisSessionStateProvider, Version=2.2.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Web.RedisSessionStateProvider.2.2.5\lib\net40\Microsoft.Web.RedisSessionStateProvider.dll</HintPath>
|
||||
<Reference Include="Microsoft.Web.RedisSessionStateProvider, Version=4.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Web.RedisSessionStateProvider.4.0.1\lib\net462\Microsoft.Web.RedisSessionStateProvider.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
|
||||
+24
-3
@@ -33,9 +33,28 @@
|
||||
</httpModules>
|
||||
<sessionState mode="Custom" customProvider="MySessionStateStore">
|
||||
<providers>
|
||||
<!-- For more details check https://github.com/Azure/aspnet-redis-providers/wiki -->
|
||||
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="127.0.0.1" accessKey="" ssl="false" applicationName="GPW_ADM" />
|
||||
</providers>
|
||||
|
||||
<!-- For more details check https://github.com/Azure/aspnet-redis-providers/wiki --><!-- Either use 'connectionString' OR 'settingsClassName' and 'settingsMethodName' OR use 'host','port','accessKey','ssl','connectionTimeoutInMilliseconds' and 'operationTimeoutInMilliseconds'. --><!-- 'throwOnError','retryTimeoutInMilliseconds','databaseId' and 'applicationName' can be used with both options. --><!--
|
||||
<add name="MySessionStateStore"
|
||||
host = "127.0.0.1" [String]
|
||||
port = "" [number]
|
||||
accessKey = "" [String]
|
||||
ssl = "false" [true|false]
|
||||
throwOnError = "true" [true|false]
|
||||
retryTimeoutInMilliseconds = "5000" [number]
|
||||
databaseId = "0" [number]
|
||||
applicationName = "" [String]
|
||||
connectionTimeoutInMilliseconds = "5000" [number]
|
||||
operationTimeoutInMilliseconds = "1000" [number]
|
||||
connectionString = "<Valid StackExchange.Redis connection string>" [String]
|
||||
settingsClassName = "<Assembly qualified class name that contains settings method specified below. Which basically return 'connectionString' value>" [String]
|
||||
settingsMethodName = "<Settings method should be defined in settingsClass. It should be public, static, does not take any parameters and should have a return type of 'String', which is basically 'connectionString' value.>" [String]
|
||||
loggingClassName = "<Assembly qualified class name that contains logging method specified below>" [String]
|
||||
loggingMethodName = "<Logging method should be defined in loggingClass. It should be public, static, does not take any parameters and should have a return type of System.IO.TextWriter.>" [String]
|
||||
redisSerializerType = "<Assembly qualified class name that implements Microsoft.Web.Redis.ISerializer>" [String]
|
||||
/>
|
||||
--><add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="127.0.0.1" accessKey="" ssl="false" applicationName="GPW_ADM" />
|
||||
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="" accessKey="" ssl="true" /></providers>
|
||||
</sessionState></system.web>
|
||||
<appSettings>
|
||||
<!--Impostazione gestione serializzazione variabili in sessione (es per Redis)-->
|
||||
@@ -415,6 +434,8 @@
|
||||
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
|
||||
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
|
||||
<remove name="Session" />
|
||||
<add name="Session" type="Microsoft.AspNet.SessionState.SessionStateModuleAsync, Microsoft.AspNet.SessionState.SessionStateModule, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode" />
|
||||
</modules>
|
||||
<staticContent>
|
||||
<remove fileExtension=".woff" />
|
||||
|
||||
@@ -14,10 +14,11 @@
|
||||
<package id="Microsoft.AspNet.FriendlyUrls.Core.it" version="1.0.2" targetFramework="net462" />
|
||||
<package id="Microsoft.AspNet.ScriptManager.MSAjax" version="5.0.0" targetFramework="net462" />
|
||||
<package id="Microsoft.AspNet.ScriptManager.WebForms" version="5.0.0" targetFramework="net462" />
|
||||
<package id="Microsoft.AspNet.SessionState.SessionStateModule" version="1.1.0" targetFramework="net462" />
|
||||
<package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net462" />
|
||||
<package id="Microsoft.AspNet.Web.Optimization.WebForms" version="1.1.3" targetFramework="net462" />
|
||||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net462" />
|
||||
<package id="Microsoft.Web.RedisSessionStateProvider" version="2.2.5" targetFramework="net462" />
|
||||
<package id="Microsoft.Web.RedisSessionStateProvider" version="4.0.1" targetFramework="net462" />
|
||||
<package id="Modernizr" version="2.8.3" targetFramework="net462" />
|
||||
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net462" />
|
||||
<package id="Pipelines.Sockets.Unofficial" version="2.1.1" targetFramework="net462" />
|
||||
|
||||
Vendored
+1
-1
@@ -14,7 +14,7 @@ pipeline {
|
||||
|
||||
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
|
||||
script {
|
||||
withEnv(['NEXT_BUILD_NUMBER=4090']) {
|
||||
withEnv(['NEXT_BUILD_NUMBER=4091']) {
|
||||
// env.versionNumber = VersionNumber(versionNumberString : '2.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
|
||||
env.versionNumber = VersionNumber(versionNumberString : '2.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
|
||||
env.APP_NAME = 'GPW'
|
||||
|
||||
BIN
Binary file not shown.
@@ -1,15 +0,0 @@
|
||||
Microsoft.Web.Redis.RedisSessionStateProvider Nuget package has been added to your project.
|
||||
|
||||
A new <sessionstate> entry has been added to your web.config. However, any existing session state entries will not have been modified.
|
||||
If you believe you had an existing sessionstate entry, you will need to manually modify the web.config to make the Redis Session State Provider as the default.
|
||||
|
||||
More information on Azure Redis Session State Provider can be found here -
|
||||
Blog - http://blogs.msdn.com/b/webdev/archive/2014/05/12/announcing-asp-net-session-state-provider-for-redis-preview-release.aspx
|
||||
MSDN - http://msdn.microsoft.com/en-us/library/azure/dn690522.aspx
|
||||
|
||||
More info on Azure Redis Cache service can be found here -
|
||||
Blog - http://azure.microsoft.com/blog/2014/06/04/lap-around-azure-redis-cache-preview/
|
||||
MSDN - http://msdn.microsoft.com/en-us/library/azure/dn690523.aspx
|
||||
|
||||
## Version 2.0.0
|
||||
* This release contains a breaking change from '1.*' versions in the format of key names used to store session data. In order to support Redis Clusters, key names now include brackets. As a result of this change, existing session data will not be recognized by this session state provider. For more details: https://github.com/Azure/aspnet-redis-providers/wiki/v2.0.0-Breaking-Change-Details
|
||||
-36
@@ -1,36 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<system.web>
|
||||
<sessionState mode="Custom" customProvider="MySessionStateStore">
|
||||
<providers>
|
||||
<!-- For more details check https://github.com/Azure/aspnet-redis-providers/wiki -->
|
||||
<!-- Either use 'connectionString' OR 'settingsClassName' and 'settingsMethodName' OR use 'host','port','accessKey','ssl','connectionTimeoutInMilliseconds' and 'operationTimeoutInMilliseconds'. -->
|
||||
<!-- 'throwOnError','retryTimeoutInMilliseconds','databaseId' and 'applicationName' can be used with both options. -->
|
||||
<!--
|
||||
<add name="MySessionStateStore"
|
||||
host = "127.0.0.1" [String]
|
||||
port = "" [number]
|
||||
accessKey = "" [String]
|
||||
ssl = "false" [true|false]
|
||||
throwOnError = "true" [true|false]
|
||||
retryTimeoutInMilliseconds = "5000" [number]
|
||||
databaseId = "0" [number]
|
||||
applicationName = "" [String]
|
||||
connectionTimeoutInMilliseconds = "5000" [number]
|
||||
operationTimeoutInMilliseconds = "1000" [number]
|
||||
connectionString = "<Valid StackExchange.Redis connection string>" [String]
|
||||
settingsClassName = "<Assembly qualified class name that contains settings method specified below. Which basically return 'connectionString' value>" [String]
|
||||
settingsMethodName = "<Settings method should be defined in settingsClass. It should be public, static, does not take any parameters and should have a return type of 'String', which is basically 'connectionString' value.>" [String]
|
||||
loggingClassName = "<Assembly qualified class name that contains logging method specified below>" [String]
|
||||
loggingMethodName = "<Logging method should be defined in loggingClass. It should be public, static, does not take any parameters and should have a return type of System.IO.TextWriter.>" [String]
|
||||
redisSerializerType = "<Assembly qualified class name that implements Microsoft.Web.Redis.ISerializer>" [String]
|
||||
/>
|
||||
-->
|
||||
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider"
|
||||
host=""
|
||||
accessKey=""
|
||||
ssl="true" />
|
||||
</providers>
|
||||
</sessionState>
|
||||
</system.web>
|
||||
</configuration>
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user