public RoutingRuleManager(IRoutingRuleRepository routingRulesRepository, IExecutionContextAccessor executionContextAccessor , IUnitOfWork unitOfWork, ILogger <RoutingRuleManager> logger, IScheduleBusiness scheduleBusiness, IMapper mapper, IEventBus eventBus, IOptions <Configuration.Configuration> options) { _routingRulesRepository = routingRulesRepository; _scheduleBusiness = scheduleBusiness; _executionContextAccessor = executionContextAccessor; _unitOfWork = unitOfWork; _mapper = mapper; _eventBus = eventBus; _configuration = options.Value; _logger = logger; }
/// <summary> /// Only constructor, params are automatically injected /// </summary> /// <param name="scheduleBusiness"></param> /// <param name="logger"></param> /// <param name="factory"></param> public ScheduleController(IScheduleBusiness scheduleBusiness, ILogger <ScheduleController> logger, HttpClientFactory factory) { _scheduleBusiness = scheduleBusiness; _logger = logger; _factory = factory; }