mirror of
https://github.com/AlexMacocian/MTSC.git
synced 2026-07-17 07:49:34 +00:00
64f1453061
Fixed enqueuing and dequeuing of messages Made http routes asynchronous to support long running operations without delays
17 lines
467 B
C#
17 lines
467 B
C#
using MTSC.Common.Http;
|
|
using MTSC.Common.Http.RoutingModules;
|
|
using MTSC.ServerSide;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MTSC.UnitTests
|
|
{
|
|
public class LongRunningModule : HttpRouteBase
|
|
{
|
|
public async override Task<HttpResponse> HandleRequest(HttpRequest request, ClientData client, Server server)
|
|
{
|
|
await Task.Delay(5000);
|
|
return new HttpResponse { StatusCode = HttpMessage.StatusCodes.OK };
|
|
}
|
|
}
|
|
}
|