public static BuildFunc UseGuardianDashboard(this BuildFunc builder, GuardianOptions options) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } GuardianOptionsFactory.RegisterOptionsFactory(() => options); GuardianRouter.BuildRoutes(ReflectionHelper.GetExecutingAssembly()); builder(_ => UseGuardianDashboard()); return(builder); }
public GuardianRouterTests() { GuardianRouter.BuildRoutes(typeof(GuardianRouterTests).Assembly); }