public HomeController(HouseDapper houseDapper, HouseDashboardService houseDashboardService, ConfigurationDapper configurationDapper, UserCollectionDapper userCollectionDapper) { this.houseDapper = houseDapper; this.houseDashboardService = houseDashboardService; this.configurationDapper = configurationDapper; this.userCollectionDapper = userCollectionDapper; }
public static void Initialize(IKernel kernel, HttpConfiguration configuration) { //LogFactory.Configure(); ServiceLocator.SetLocatorProvider(() => new NinjectServiceLocator(kernel)); ConfigurationDapper.Init(); configuration.MessageHandlers.Insert(0, new ThreadCultureMessageHandler()); FluentValidationModelValidatorProvider.Configure(configuration, provider => provider.ValidatorFactory = new NinjectValidatorFactory(kernel)); //hangfire server initialization HangfireBootstrapper.Instance.Start(); JobsRegister.Register(); }