Exemple #1
0
        public RolesService(IUnitOfWork uow, IMapper mapper, IStringLocalizer stringLocalizer, ISessionServices sessionServices /*, ISignalRServices signalRServices*/) : base(uow, mapper, stringLocalizer, sessionServices)
        {
            _uow = uow;
            _uow.CheckArgumentIsNull(nameof(_uow));

            _sessionServices = sessionServices;
            _sessionServices.CheckArgumentIsNull(nameof(_sessionServices));

            //_signalRServices = signalRServices;
            //_signalRServices.CheckArgumentIsNull(nameof(_signalRServices));

            _stringLocalizer = stringLocalizer;
            _stringLocalizer.CheckArgumentIsNull(nameof(_stringLocalizer));

            _roles = _uow.Repository <Role>() as IRoleRepository;
            _roles.CheckArgumentIsNull(nameof(_roles));

            _users = _uow.Repository <User>() as IUserRepository;
            _users.CheckArgumentIsNull(nameof(_users));
        }