コード例 #1
0
 public HomeController(HouseDapper houseDapper,
                       HouseDashboardService houseDashboardService,
                       ConfigurationDapper configurationDapper,
                       UserCollectionDapper userCollectionDapper)
 {
     this.houseDapper           = houseDapper;
     this.houseDashboardService = houseDashboardService;
     this.configurationDapper   = configurationDapper;
     this.userCollectionDapper  = userCollectionDapper;
 }
コード例 #2
0
        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();
        }