mirror of
https://github.com/mm201/GamestatsBase.git
synced 2026-04-23 07:28:14 -05:00
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:
parent
db6e6e7485
commit
b3e71f7496
|
|
@ -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
1
Sample/dummy.ashx
Normal file
|
|
@ -0,0 +1 @@
|
|||
<%@ WebHandler Language="C#" CodeBehind="dummy.ashx.cs" Class="Sample.dummy" %>
|
||||
26
Sample/dummy.ashx.cs
Normal file
26
Sample/dummy.ashx.cs
Normal 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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user