Example #1
0
        public override Task Invoke(IOwinContext context, Func <Task> next)
        {
            var request = context.Request;

            if (request.Method != "GET" || !_path.IsWildcardMatch(request.Path))
            {
                return(next.Invoke());
            }

            var content = new StringBuilder();

            content.Append("Hello from Urchin Server on ");
            content.AppendLine(Environment.MachineName);
            content.AppendLine();

            content.Append(_persister.CheckHealth());

            return(PlainText(context, content));
        }