Example #1
0
        public static void AddDashboard(this IJobbrBuilder builder, Action <DashboardConfiguration> config)
        {
            var customConfig = new DashboardConfiguration();

            config(customConfig);

            builder.Add <DashboardConfiguration>(customConfig);

            builder.Register <IJobbrComponent>(typeof(DashboardBackend));
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DashboardBackend"/> class.
 /// </summary>
 public DashboardBackend(IJobbrServiceProvider dependencyResolver, DashboardConfiguration configuration)
 {
     this.dependencyResolver = dependencyResolver;
     this.configuration      = configuration;
 }