public AccessAuthorization(IHttpContextAccessor httpContextAccessor, IConfiguration configuration, IMisService misService, IAsmService asmService, ModuleCode moduleCode, AccessType accessType) { _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor)); _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); _misService = misService ?? throw new ArgumentNullException(nameof(misService)); _asmService = asmService ?? throw new ArgumentNullException(nameof(asmService)); ModuleCode = moduleCode; AccessType = accessType; }
public RoleController(IMisService misService, ILogger <RoleController> logger, IMapper mapper) { _misService = misService ?? throw new ArgumentNullException(nameof(misService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public MisService(IMisService misService, IMemoryCache memoryCache, IRedisCacheService redisCacheService) { _misService = misService ?? throw new ArgumentNullException(nameof(misService)); _memoryCache = memoryCache ?? throw new ArgumentNullException(nameof(memoryCache)); _redisCacheService = redisCacheService ?? throw new ArgumentNullException(nameof(redisCacheService)); }