2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-06-13 22:48:42 +00:00
Files
esiur-dotnet/Libraries/Esiur/Net/Http/EpOverHttp.cs
T
2026-05-26 16:18:57 +03:00

38 lines
921 B
C#

using Esiur.Core;
using Esiur.Net.Packets;
using Esiur.Protocol;
using Esiur.Resource;
using System;
using System.Collections.Generic;
using System.Text;
namespace Esiur.Net.Http;
public class EpOverHttp : HttpFilter
{
//[Attribute]
EntryPoint EntryPoint { get; set; }
public override AsyncReply<bool> Execute(HttpConnection sender)
{
if (sender.Request.URL != "EP")
return new AsyncReply<bool>(false);
EpPacketRequest action = (EpPacketRequest)Convert.ToByte(sender.Request.Query["a"]);
if (action == EpPacketRequest.Query)
{
EntryPoint.Query(sender.Request.Query["l"], null).Then(x =>
{
});
}
return new AsyncReply<bool>(true);
}
public override AsyncReply<bool> Handle(ResourceOperation operation, IResourceContext context = null)
{
return new AsyncReply<bool>(true);
}
}