Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }