Added a dummy handler with a blank response. (should be functionally equivalent to altwfc's dummy server after request routing)

This commit is contained in:
Greg Edwards 2015-02-26 01:55:22 -05:00
parent db6e6e7485
commit b3e71f7496
3 changed files with 32 additions and 0 deletions

View File

@ -59,6 +59,8 @@
<ItemGroup>
<Content Include="Sessions.aspx" />
<Content Include="tetrisds\store.ashx" />
<Content Include="dummy.ashx" />
<None Include="Properties\PublishProfiles\pkmnclassic.net.pubxml" />
<None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</None>
@ -71,6 +73,9 @@
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="dummy.ashx.cs">
<DependentUpon>dummy.ashx</DependentUpon>
</Compile>
<Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon>
</Compile>

1
Sample/dummy.ashx Normal file
View File

@ -0,0 +1 @@
<%@ WebHandler Language="C#" CodeBehind="dummy.ashx.cs" Class="Sample.dummy" %>

26
Sample/dummy.ashx.cs Normal file
View File

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GamestatsBase;
namespace Sample
{
/// <summary>
/// Summary description for dummy
/// </summary>
public class dummy : GamestatsHandler
{
public dummy()
: base("00000000000000000000", 0, 0, 0, 0, "dummy",
GamestatsRequestVersions.Version1, GamestatsResponseVersions.Version1, false)
{
}
public override void ProcessGamestatsRequest(byte[] request, System.IO.MemoryStream response, string url, int pid, HttpContext context, GamestatsSession session)
{
}
}
}