pulizia riferimenti Flesk

This commit is contained in:
Samuele E. Locatelli
2018-03-19 15:48:25 +01:00
parent bb958a2ca0
commit 0d338c930e
3 changed files with 2 additions and 125 deletions
-8
View File
@@ -36,14 +36,6 @@
<add verb="GET,HEAD,POST" path="*.asbx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
</httpHandlers>
<httpModules>
<!--Area FLESK-->
<add name="CompressionModule" type="Flesk.Accelerator.Module, Flesk.Accelerator" />
<!--
This HttpModule provides automatic cleanup of viewstate files
on the start of each session, thus requiring
the SessionStateModule to be installed as well.
-->
<add name="ViewstateCleanupModule" type="Flesk.Accelerator.Viewstate.CleanupModule, Flesk.ViewState" />
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
+2 -109
View File
@@ -1,62 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!--Area ottimizzazioni FLESK-->
<sectionGroup name="Flesk.NET">
<section name="HttpCompression" type="Flesk.Accelerator.HttpCompression.ConfigHandler, Flesk.Accelerator" />
<section name="ViewStateOptimizer" type="Flesk.Accelerator.Viewstate.ConfigHandler, Flesk.ViewState" />
</sectionGroup>
</configSections>
<Flesk.NET>
<!--Area Compressione-->
<HttpCompression Algorithm="Deflate" CompressionLevel="high" ExcludeContentType="application/x-zip-compressed;image/jpeg;image/png">
<UserAgent Required="false">
<Exclude Match="Google" />
</UserAgent>
<RequestPath>
<Exclude Match="\.axd" />
<Exclude Match="WebResource\.axd" />
<Exclude Match="WebUserControls\WebResource\.axd" />
<Exclude Match="WebResource\.axd" />
<Exclude Match="WebUserControls\WebResource\.axd" />
<Exclude Match="\.asbx" />
<!-- Exclude Microsoft Ajax -->
<Exclude Match="ajax/.+\.ashx" />
</RequestPath>
<ContentType>
<IsText Match="text/.*" />
<IsText Match="application/xml" />
<IsText Match="image/(vnd\.\w+\.)?svg[\-|\+]xml" />
</ContentType>
</HttpCompression>
<!--Area ViewState-->
<!--
The StorageMethod parameter sets the ViewState's storage type.
Possible values are :
- File (saves ViewState into a file, server side)
- StoragePath must specify a write enabled server path ( ~ means site root path)
If StoragePath is a web path (i.e.: \\MachineName\Dir), when used in webfarms,
please add the following line under <system.web>
<identity impersonate="true" userName="domain\username" password="userpass"/>
- Default (default ViewState saving method, sending hidden fields to client side)
- Session (saves ViewState into a Session variable, server side)
- SqlServer (saves the ViewState into a database table)
- ConnectionString specifies the database connection.
- TableName specifies the table in the database where the records will be stored.
New Option :
Compressed="true" or Compressed="false"
this will compress the ViewState if StorageMethod is Default or File.
so the ViewState's value will be significantly smaller than the original value.
Compression method is not suported by StorageMethod="Session"
-->
<ViewStateOptimizer PersistenceHandler="MyNamespace.MyViewstatePersister, MyAssembly" StorageMethod="File" StoragePath="~/Logs/ViewStates" ConnectionString="Data Source=localhost;Initial Catalog=EQUA_XPS;Persist Security Info=True;User ID=sa;Password=sa" TableName="app_ViewState" Compressed="true" RequestBehavior="EachLoad" ViewStateCleanupInterval="00:30:00" ViewStateFilesMaxAge="00:30:00" />
</Flesk.NET>
<!--
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
@@ -83,14 +26,6 @@
<add verb="GET,HEAD,POST" path="*.asbx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
</httpHandlers>
<httpModules>
<!--Area FLESK-->
<add name="CompressionModule" type="Flesk.Accelerator.Module, Flesk.Accelerator" />
<!--
This HttpModule provides automatic cleanup of viewstate files
on the start of each session, thus requiring
the SessionStateModule to be installed as well.
-->
<add name="ViewstateCleanupModule" type="Flesk.Accelerator.Viewstate.CleanupModule, Flesk.ViewState" />
</httpModules>
<customErrors mode="Off" />
<!--<customErrors mode="RemoteOnly" defaultRedirect="unauthorized.aspx"/>-->
@@ -108,50 +43,8 @@
<!--<sessionState mode="InProc" timeout="30" />-->
<sessionState mode="Custom" customProvider="MySessionStateStore">
<providers>
<!--
<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]
/>
-->
<!-- 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="localhost" accessKey="localhost" ssl="false" applicationName="XPST" />
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="" accessKey="" ssl="true" /></providers>
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="localhost" accessKey="localhost" ssl="false" applicationName="XPST" />
</providers>
</sessionState>
</system.web>
<system.web.extensions>
-8
View File
@@ -74,14 +74,6 @@
<Reference Include="AjaxMin, Version=5.14.5506.26196, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f, processorArchitecture=MSIL">
<HintPath>..\packages\AjaxMin.5.14.5506.26202\lib\net40\AjaxMin.dll</HintPath>
</Reference>
<Reference Include="Flesk.Accelerator, Version=1.3.8000.0, Culture=neutral, PublicKeyToken=001f3d0f785ebf55, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\..\Library\FleskAccelerator\bin\Release\Flesk.Accelerator.dll</HintPath>
</Reference>
<Reference Include="Flesk.ViewState, Version=2.4.8000.0, Culture=neutral, PublicKeyToken=001f3d0f785ebf55, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\..\Library\FleskViewStateOptimizer\bin\Release\Flesk.ViewState.dll</HintPath>
</Reference>
<Reference Include="Microsoft.AspNet.FriendlyUrls, Version=1.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.FriendlyUrls.Core.1.0.2\lib\net45\Microsoft.AspNet.FriendlyUrls.dll</HintPath>
<Private>True</Private>