Esempio n. 1
0
        internal void PublishErrorPage()
        {
            const string address = ServerLauncher.ErrorAddress;
            var          page    = new PagePublished(DefaultServerError, HttpStatusCode.InternalServerError);

            _published.Publish(address, page);
            var combined = Published.CombinePathMethod(address, "POST");

            _published.Publish(combined, page);
        }
Esempio n. 2
0
        internal override async Task <bool> ProcessRequest(HttpContext http)
        {
            var combined = Published.CombinePathMethod(http.Request.Path, http.Request.Method);

            if (!_app.TryGetNode(combined, out var item))
            {
                return(false);
            }
            await item.Run(_app, http, _options);

            return(true);
        }