public static IAppBuilder UsePugTraceDashboard( this IAppBuilder builder, string pathMatch, DashboardOptions options) { return builder.UsePugTraceDashboard(pathMatch, options, TraceStorage.Current); }
public static IAppBuilder UsePugTraceDashboard( this IAppBuilder builder, string pathMatch, DashboardOptions options, TraceStorage storage) { if (builder == null) throw new ArgumentNullException("builder"); if (pathMatch == null) throw new ArgumentNullException("pathMatch"); if (options == null) throw new ArgumentNullException("options"); if (storage == null) throw new ArgumentNullException("storage"); SignatureConversions.AddConversions(builder); builder.Map(pathMatch, subApp => subApp .UseOwin() .UsePugTraceDashboard(options, storage, DashboardRoutes.Routes)); return builder; }