Пример #1
0
 public object Any(FallbackForClientRoutes request)
 {
     //Return default.cshtml for unmatched requests so routing is handled on the client
     return(new HttpResult
     {
         View = "/default.cshtml"
     });
 }
Пример #2
0
 public object Any(FallbackForClientRoutes request)
 {
     //Return default.cshtml for unmatched requests so routing is handled on the client
     return new HttpResult
     {
         View = "/default.cshtml"
     };
 }
 //Return index.html for unmatched requests so routing is handled on client
 public object Any(FallbackForClientRoutes request) =>
 new PageResult(Request.GetPage("/"));
Пример #4
0
 public object Any(FallbackForClientRoutes request)
 {
     return defaultHtml ??
         (defaultHtml = HostContext.ResolveVirtualFile("/default.html", Request).ReadAllText());
 }
Пример #5
0
 public object Any(FallbackForClientRoutes request)
 {
     return(defaultHtml ??
            (defaultHtml = HostContext.ResolveVirtualFile("/default.html", Request).ReadAllText()));
 }