public static IAppBuilder UseMapDashboard( this IAppBuilder app, string pathMatch = "/dashboard", System.Action <RouteCollection> routes = null, IEnumerable <IDashboardAuthorizationFilter> authorization = null ) { var _routes = new AspNetCoreDashboard.Dashboard.RouteCollection(); routes(_routes); return(UseMapDashboard(app, pathMatch, _routes, authorization)); }
public static IAppBuilder UseMapDashboard <T>( this IAppBuilder app, string pathMatch = "/dashboard", T options = default(T), System.Action <RouteCollection> routes = null, IEnumerable <IDashboardAuthorizationFilter> authorization = null ) where T : class, new() { var _routes = new AspNetCoreDashboard.Dashboard.RouteCollection(); routes(_routes); return(UseMapDashboard <T>(app, pathMatch, options, _routes, authorization)); }