Пример #1
0
        /// <summary>
        /// Core handler
        /// </summary>
        protected override Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
        {
            var all = GasconadeUi.KnownLogTypes().ToList();

            if (!all.Any())
            {
                return(TagHttpPage(PageContentGenerator.EmptyLogsPage()));
            }

            return(TagHttpPage(PageContentGenerator.ListingDocument(all, GasconadeUi.ReturnLink, GasconadeUi.HeaderHtml)));
        }
Пример #2
0
        private string BuildPage()
        {
            var all = GasconadeUi.KnownLogTypes().ToList();

            if (!all.Any())
            {
                return(TagHttpPage(PageContentGenerator.EmptyLogsPage()));
            }

            return(TagHttpPage(PageContentGenerator.ListingDocument(all, GasconadeUi.ReturnLink, GasconadeUi.HeaderHtml)));
        }