mirror of https://github.com/SixLabors/ImageSharp
Browse Source
Reverted dynamic HttpModule creation introduced in v3.2.0 to improve performance. Former-commit-id: 16a0496650d12d7e468036a3c8cab5fe825429b2af/merge-core
15 changed files with 32 additions and 66 deletions
@ -1,6 +1,14 @@ |
|||||
<?xml version="1.0"?> |
<?xml version="1.0"?> |
||||
<configuration> |
<configuration> |
||||
|
<system.web> |
||||
|
<httpModules> |
||||
|
<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web"/> |
||||
|
</httpModules> |
||||
|
</system.web> |
||||
<system.webServer> |
<system.webServer> |
||||
<modules runAllManagedModulesForAllRequests="true"/> |
<validation validateIntegratedModeConfiguration="false" /> |
||||
|
<modules> |
||||
|
<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web"/> |
||||
|
</modules> |
||||
</system.webServer> |
</system.webServer> |
||||
</configuration> |
</configuration> |
||||
@ -1,31 +0,0 @@ |
|||||
// --------------------------------------------------------------------------------------------------------------------
|
|
||||
// <copyright file="StartUp.cs" company="James South">
|
|
||||
// Copyright (c) James South.
|
|
||||
// Licensed under the Apache License, Version 2.0.
|
|
||||
// </copyright>
|
|
||||
// <summary>
|
|
||||
// Provides methods to handle startup events.
|
|
||||
// </summary>
|
|
||||
// --------------------------------------------------------------------------------------------------------------------
|
|
||||
|
|
||||
[assembly: System.Web.PreApplicationStartMethod(typeof(ImageProcessor.Web.Helpers.StartUp), "PreApplicationStart")] |
|
||||
|
|
||||
namespace ImageProcessor.Web.Helpers |
|
||||
{ |
|
||||
using ImageProcessor.Web.HttpModules; |
|
||||
using Microsoft.Web.Infrastructure.DynamicModuleHelper; |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Provides methods to handle startup events.
|
|
||||
/// </summary>
|
|
||||
public static class StartUp |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// The pre application start.
|
|
||||
/// </summary>
|
|
||||
public static void PreApplicationStart() |
|
||||
{ |
|
||||
DynamicModuleUtility.RegisterModule(typeof(ImageProcessingModule)); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
@ -1,4 +0,0 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
<packages> |
|
||||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" /> |
|
||||
</packages> |
|
||||
@ -1,9 +1,7 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<repositories> |
<repositories> |
||||
<repository path="..\ImageProcessor.Web\NET4\packages.config" /> |
<repository path="..\ImageProcessor.Web\NET4\packages.config" /> |
||||
<repository path="..\ImageProcessor.Web\NET45\packages.config" /> |
|
||||
<repository path="..\TestWebsites\NET4\packages.config" /> |
<repository path="..\TestWebsites\NET4\packages.config" /> |
||||
<repository path="..\TestWebsites\NET45\Test_Website_MVC5_NET45\packages.config" /> |
|
||||
<repository path="..\TestWebsites\NET45\Test_Website_NET45\packages.config" /> |
<repository path="..\TestWebsites\NET45\Test_Website_NET45\packages.config" /> |
||||
<repository path="..\TestWebsites\NET45\Test_Website_Webforms_NET45\packages.config" /> |
<repository path="..\TestWebsites\NET45\Test_Website_Webforms_NET45\packages.config" /> |
||||
</repositories> |
</repositories> |
||||
Loading…
Reference in new issue