/// <summary> /// Process an individual request. /// </summary> /// <param name="environment"></param> /// <returns></returns> public Task Invoke(HttpContext context) { HttpRequest request = context.Request; if (!_options.Path.HasValue || _options.Path == request.Path) { // Dynamically generated for LOC. var welcomePage = new WelcomePage(); return(welcomePage.ExecuteAsync(context)); } return(_next(context)); }