代码之家  ›  专栏  ›  技术社区  ›  Shinya Koizumi

为单个应用程序添加仪表板

  •  0
  • Shinya Koizumi  · 技术社区  · 7 年前

     app.UseStaticFiles();            
     app.UseRewritePath();
     app.UseAuthentication();
    
     app.UseHangfireDashboard("/hangfire");
     app.UseHangfireServer();
    
     app.UseMvc(routes =>
                {
                    routes.MapRoute(
                        name: "default",
                        template: "{controller=Home}/{action=Index}/{id?}");
                });
    
    1 回复  |  直到 7 年前
        1
  •  4
  •   mason Tim Schmelter    7 年前

    看来 app.UseRewritePath();

    app.UseStaticFiles();
    app.UseHangfireDashboard("/hangfire");            
    app.UseRewritePath();
    app.UseAuthentication();
    
    
    app.UseHangfireServer();
    
    app.UseMvc(routes =>
                {
                    routes.MapRoute(
                        name: "default",
                        template: "{controller=Home}/{action=Index}/{id?}");
                });