public static IAppBuilder UseDashboard( this IAppBuilder builder, string pathMatch = null, DashboardOptions options = null, RouteCollection routes = null) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } if (string.IsNullOrEmpty(pathMatch)) { pathMatch = "/dashboard"; } if (options == null) { options = new DashboardOptions(); } if (routes == null) { routes = new RouteCollectionBuilder().Routes; } SignatureConversions.AddConversions(builder); builder.Map(pathMatch, subApp => subApp .UseOwin() .UseDashboard(options, routes)); return(builder); }
public static IAppBuilder UseDashboard( this IAppBuilder builder, string pathMatch = null, DashboardOptions options = null, RouteCollection routes = null) { if (builder == null) throw new ArgumentNullException(nameof(builder)); if (string.IsNullOrEmpty(pathMatch)) pathMatch = "/dashboard"; if (options == null) options = new DashboardOptions(); if (routes == null) routes = new RouteCollectionBuilder().Routes; SignatureConversions.AddConversions(builder); builder.Map(pathMatch, subApp => subApp .UseOwin() .UseDashboard(options, routes)); return builder; }