public GetTogglesListCommand(IServiceToggleRepository serviceToggleRepository, IGlobalToggleRepository globalToggleRepository, IHierarchyRuleEvaluator ruleEvaluator, IMapper mapper, IHttpContextAccessor httpContextAccessor) { if (httpContextAccessor is null) { throw new ArgumentNullException(nameof(httpContextAccessor)); } if (serviceToggleRepository is null) { throw new ArgumentNullException(nameof(serviceToggleRepository)); } if (globalToggleRepository is null) { throw new ArgumentNullException(nameof(globalToggleRepository)); } if (ruleEvaluator is null) { throw new ArgumentNullException(nameof(ruleEvaluator)); } if (mapper is null) { throw new ArgumentNullException(nameof(mapper)); } _serviceToggleRepository = serviceToggleRepository; _globalToggleRepository = globalToggleRepository; _ruleEvaluator = ruleEvaluator; _mapper = mapper; _httpContextAccessor = httpContextAccessor; }
public DeleteServiceToggleCommand(IServiceToggleRepository serviceToggleRepository) { if (serviceToggleRepository is null) { throw new ArgumentNullException(nameof(serviceToggleRepository)); } _serviceToggleRepository = serviceToggleRepository; }
public PutServiceToggleCommand(IServiceToggleRepository serviceToggleRepository, IMapper mapper) { if (serviceToggleRepository is null) { throw new ArgumentNullException(nameof(serviceToggleRepository)); } if (mapper is null) { throw new ArgumentNullException(nameof(mapper)); } _serviceToggleRepository = serviceToggleRepository; _mapper = mapper; }
public GetServiceToggleCommand(IActionContextAccessor actionContextAccessor, IServiceToggleRepository serviceToggleRepository, IMapper mapper) { if (actionContextAccessor is null) { throw new ArgumentNullException(nameof(actionContextAccessor)); } if (serviceToggleRepository is null) { throw new ArgumentNullException(nameof(serviceToggleRepository)); } if (mapper is null) { throw new ArgumentNullException(nameof(mapper)); } _actionContextAccessor = actionContextAccessor; _serviceToggleRepository = serviceToggleRepository; _mapper = mapper; }
public GetServiceTogglesListByToggleIdCommand(IServiceToggleRepository serviceToggleRepository, IMapper mapper, IHttpContextAccessor httpContextAccessor) { if (httpContextAccessor is null) { throw new ArgumentNullException(nameof(httpContextAccessor)); } if (serviceToggleRepository is null) { throw new ArgumentNullException(nameof(serviceToggleRepository)); } if (mapper is null) { throw new ArgumentNullException(nameof(mapper)); } _serviceToggleRepository = serviceToggleRepository; _mapper = mapper; _httpContextAccessor = httpContextAccessor; }