public static IWindsorContainer AddTaskSchedulerDashboard(this IWindsorContainer container, TaskSchedulerOptions options = null) { container .AddTaskScheduler(options) .Register( Component .For <RouteCollection>() .Instance(DashboardRoutes.Routes)) ; return(container); }