Exemplo n.º 1
0
        public async Task Handle(TPRequest request, TransferProtocolServer protocol)
        {
            await Task.Run(() =>
            {
                PrintLog(request);
                var controller = new ControllerHandler();
                var reqContext = new RequestContext(request);

                controller.Execute(reqContext);
                protocol.Send(reqContext.Responce);
            });
        }