示例#1
0
        public AccountController(
            IUserService userSVC
            , IRoleService roleSVC
            , IUserRoleService userRolesSVC
            , IRoleAccessService roleAccessSVC
            , IAccessLinkService accessLinkSVC
            //, IHttpContextAccessor httpContextAccessor
            , IConfiguration configuration
            , IMapper mapper
            , IEmailSender emailSender
            , IOptions <EmailConfiguration> emailConfiguration
            )

        {
            _userSVC       = userSVC;
            _roleSVC       = roleSVC;
            _userRolesSVC  = userRolesSVC;
            _roleAccessSVC = roleAccessSVC;
            _accessLinkSVC = accessLinkSVC;
            //_httpContextAccessor = httpContextAccessor;
            _configuration      = configuration;
            _mapper             = mapper;
            _emailSender        = emailSender;
            _emailConfiguration = emailConfiguration.Value;
        }
示例#2
0
 public UserController(IUserService userSVC
                       , IRoleService roleSVC
                       , IUserRoleService userRolesSVC
                       , IRoleAccessService roleAccessSVC
                       , IAccessLinkService accessLinkSVC
                       , IHttpContextAccessor httpContextAccessor
                       , IConfiguration configuration
                       , IMapper mapper
                       )
 {
     _userSVC      = userSVC;
     _roleSVC      = roleSVC;
     _userRolesSVC = userRolesSVC;
     //_roleAccessSVC = roleAccessSVC;
     //_accessLinkSVC = accessLinkSVC;
     //_httpContextAccessor = httpContextAccessor;
     _configuration = configuration;
     _mapper        = mapper;
 }