Esempio n. 1
0
        public void Handle(AuthenticatedHttpRequestMessage message)
        {
            var manager = message.Manager;
            var match   = message.Match;

            try {
                var reqParams = match.RequestHandler(manager, match.TemplateMatch);
                if (!reqParams.IsDone)
                {
                    _pending.Add(Tuple.Create(DateTime.UtcNow + reqParams.Timeout, manager));
                }
            } catch (Exception exc) {
                Log.Error(exc, "Error while handling HTTP request '{url}'.", manager.HttpEntity.Request.Url);
                InternalServerError(manager);
            }

            PurgeTimedOutRequests();
        }
 public void Handle(AuthenticatedHttpRequestMessage message)
 {
     ProcessRequest(message.HttpService, message.Entity);
 }