mirror of
https://github.com/AlexMacocian/MTSC.git
synced 2026-07-21 01:39:31 +00:00
Built threadsafe collection for running asynchronous operations on clients
Fixed enqueuing and dequeuing of messages Made http routes asynchronous to support long running operations without delays
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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 };
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user