aggiunti pacchetti...

This commit is contained in:
Samuele E. Locatelli
2017-06-01 16:26:16 +02:00
parent 368e7755c1
commit dcdcb29de3
18 changed files with 26105 additions and 0 deletions
@@ -0,0 +1,15 @@
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
@@ -0,0 +1,36 @@
<?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>