mirror of https://github.com/SixLabors/ImageSharp
17 changed files with 37 additions and 73 deletions
@ -1,6 +1,14 @@ |
|||
<?xml version="1.0"?> |
|||
<configuration> |
|||
<configuration> |
|||
<system.web> |
|||
<httpModules> |
|||
<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web"/> |
|||
</httpModules> |
|||
</system.web> |
|||
<system.webServer> |
|||
<modules runAllManagedModulesForAllRequests="true"/> |
|||
<validation validateIntegratedModeConfiguration="false" /> |
|||
<modules> |
|||
<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web"/> |
|||
</modules> |
|||
</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"?> |
|||
<repositories> |
|||
<repository path="..\ImageProcessor.Web\NET4\packages.config" /> |
|||
<repository path="..\ImageProcessor.Web\NET45\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_Webforms_NET45\packages.config" /> |
|||
</repositories> |
|||
Loading…
Reference in new issue