コード例 #1
0
        public ManageCityStateHandler(IConfiguration configuration)
        {
            var factory = new ProcessorFactoryResolver <IManageCityStateRepository>(configuration);

            _manageCityStateRepository = factory.CreateProcessor();
            var masterFactory = new ProcessorFactoryResolver <IMasterDataRepository>(configuration);

            _masterDataRepository = masterFactory.CreateProcessor();
            var bulkjobpostfactory = new ProcessorFactoryResolver <IBulkJobPostRepository>(configuration);

            _bulkjobpostRepository = bulkjobpostfactory.CreateProcessor();
        }
コード例 #2
0
        public BulkJobPostHandler(IHostingEnvironment env, IConfiguration configuration, IEMailHandler _emailHandler)
        {
            environment  = env;
            emailHandler = _emailHandler;
            var authFactory = new ProcessorFactoryResolver <IAuthRepository>(configuration);

            authProcessor = authFactory.CreateProcessor();
            var bjpFactory = new ProcessorFactoryResolver <IBulkJobPostRepository>(configuration);

            bjpProcessor = bjpFactory.CreateProcessor();
            var jpFactory = new ProcessorFactoryResolver <IJobPostRepository>(configuration);

            jobPostProcessor = jpFactory.CreateProcessor();
        }