Added game sync request route and stub handler.

This commit is contained in:
Greg Edwards
2021-02-17 22:08:49 -05:00
parent 2eb175a4ed
commit b876a26e07
4 changed files with 38 additions and 0 deletions

View File

@@ -102,6 +102,11 @@ namespace PkmnFoundations.GTS
pathInfo = "/pokemon/validate";
return VirtualPathUtility.ToAbsolute("~/pkvldtprod.ashx");
}
else if (split.Length > 1 && split[1] == "dsio" && split[2] == "gw")
{
pathInfo = "/dsio/gw";
return VirtualPathUtility.ToAbsolute("~/pgl.ashx");
}
else return null;
}
}

View File

@@ -87,6 +87,7 @@
<Content Include="pkvldtprod.ashx" />
<Content Include="pokemondpds_web.ashx" />
<Content Include="masters\MasterPage.master" />
<Content Include="pgl.ashx" />
<None Include="Properties\PublishProfiles\Public.pubxml" />
<Content Include="Web.config">
<SubType>Designer</SubType>
@@ -107,6 +108,9 @@
<Compile Include="masters\MasterPage.master.designer.cs">
<DependentUpon>MasterPage.master</DependentUpon>
</Compile>
<Compile Include="pgl.ashx.cs">
<DependentUpon>pgl.ashx</DependentUpon>
</Compile>
<Compile Include="pkvldtprod.ashx.cs">
<DependentUpon>pkvldtprod.ashx</DependentUpon>
</Compile>

1
gts/pgl.ashx Normal file
View File

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

28
gts/pgl.ashx.cs Normal file
View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace PkmnFoundations.GTS
{
/// <summary>
/// Summary description for pgl
/// </summary>
public class pgl : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
context.Response.Write("Hello (dream) World");
}
public bool IsReusable
{
get
{
return true;
}
}
}
}