Skip to content

Commit

Permalink
Readded PreApplicationStartCode after it was lost in a merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nikmd23 committed Mar 29, 2011
1 parent c4c7f46 commit d79c246
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
2 changes: 2 additions & 0 deletions source/Glimpse.Net/Glimpse.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.configuration" />
Expand All @@ -52,6 +53,7 @@
<Compile Include="Extentions.cs" />
<Compile Include="GlimpseRequestMetadata.cs" />
<Compile Include="GlimpseTraceListener.cs" />
<Compile Include="PreApplicationStartCode.cs" />
<Compile Include="Responder\Clients.cs" />
<Compile Include="Responder\Config.cs" />
<Compile Include="Responder\GlimpseResponderAttribute.cs" />
Expand Down
12 changes: 12 additions & 0 deletions source/Glimpse.Net/PreApplicationStartCode.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Microsoft.Web.Infrastructure.DynamicModuleHelper;

namespace Glimpse.Net
{
public class PreApplicationStartCode
{
public static void Start()
{
DynamicModuleUtility.RegisterModule(typeof(Module));
}
}
}
3 changes: 3 additions & 0 deletions source/Glimpse.Net/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Web;
using Glimpse.Net;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
Expand Down Expand Up @@ -37,3 +39,4 @@

[assembly: System.Web.UI.WebResource("Glimpse.Net.glimpseClient.js", "application/x-javascript")]
[assembly: System.Web.UI.WebResource("Glimpse.Net.glimpseSprinte.png", "image/png")]
[assembly: PreApplicationStartMethod(typeof(PreApplicationStartCode), "Start")]
4 changes: 3 additions & 1 deletion source/Glimpse.Test/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
<!--
Look Ma - no httpModules!
<httpModules>
<add name="Glimpse" type="Glimpse.Net.Module" />
</httpModules>
</httpModules>-->
<pages>
<namespaces>
<add namespace="System.Web.Helpers" />
Expand Down

0 comments on commit d79c246

Please sign in to comment.