Example #1
0
        /// <summary>
        ///     Initiate controller with injectors.
        /// </summary>
        /// <param name="unitOfWork"></param>
        /// <param name="mapper"></param>
        /// <param name="baseTimeService"></param>
        /// <param name="relationalDbService"></param>
        /// <param name="encryptionService"></param>
        /// <param name="profileService"></param>
        /// <param name="systemBaseTimeService"></param>
        /// <param name="externalAuthenticationService"></param>
        /// <param name="sendMailService"></param>
        /// <param name="emailCacheService"></param>
        /// <param name="jwtConfigurationOptions"></param>
        /// <param name="applicationSettings"></param>
        /// <param name="logger"></param>
        /// <param name="vgyService"></param>
        /// <param name="profileCacheService"></param>
        /// <param name="captchaService"></param>
        /// <param name="realTimeService"></param>
        /// <param name="userDomain"></param>
        public UserController(
            IAppUnitOfWork unitOfWork,
            IMapper mapper,
            IBaseTimeService baseTimeService,
            IBaseRelationalDbService relationalDbService,
            IBaseEncryptionService encryptionService,
            IAppProfileService profileService,
            IBaseTimeService systemBaseTimeService,
            IExternalAuthenticationService externalAuthenticationService,
            ISendMailService sendMailService,
            IEmailCacheService emailCacheService,
            IOptions <AppJwtModel> jwtConfigurationOptions,
            IOptions <ApplicationSetting> applicationSettings,
            ILogger <UserController> logger,
            IVgyService vgyService,
            IBaseKeyValueCacheService <int, User> profileCacheService,
            ICaptchaService captchaService,

            IUserDomain userDomain) : base(
                unitOfWork, mapper, baseTimeService,
                relationalDbService, profileService)
        {
            _logger            = logger;
            _profileService    = profileService;
            _sendMailService   = sendMailService;
            _emailCacheService = emailCacheService;
            _captchaService    = captchaService;

            _userDomain = userDomain;
        }
Example #2
0
        public AccountController(
            IIdentityServerInteractionService interaction,
            IClientStore clientStore,
            IAuthenticationSchemeProvider schemeProvider,
            IEventService events,
            LearnIs4DbContext dbContext,
            IBaseEncryptionService baseEncryptionService)
        {
            // if the TestUserStore is not in DI, then we'll just use the global users collection
            // this is where you would plug in your own custom identity management library (e.g. ASP.NET Identity)
            _dbContext = dbContext;

            _interaction       = interaction;
            _clientStore       = clientStore;
            _schemeProvider    = schemeProvider;
            _events            = events;
            _encryptionService = baseEncryptionService;
        }
Example #3
0
 public UserDomain(IBaseEncryptionService encryptionService,
                   IAuthenticationUnitOfWork unitOfWork,
                   IHttpContextAccessor httpContextAccessor,
                   IExternalAuthenticationService externalAuthenticationService,
                   IBaseTimeService baseTimeService,
                   IBaseRelationalDbService relationalDbService,
                   IOptions <AppJwtModel> appJwt
                   //ApplicationSetting applicationSettings
                   )
 {
     _encryptionService             = encryptionService;
     _unitOfWork                    = unitOfWork;
     _httpContext                   = httpContextAccessor.HttpContext;
     _externalAuthenticationService = externalAuthenticationService;
     _baseTimeService               = baseTimeService;
     //_applicationSettings = applicationSettings;
     _relationalDbService = relationalDbService;
     _appJwt = appJwt.Value;
 }
Example #4
0
 public UserDomain(IBaseEncryptionService encryptionService,
                   IAppUnitOfWork unitOfWork,
                   IExternalAuthenticationService externalAuthenticationService,
                   IBaseKeyValueCacheService <int, User> profileCacheService,
                   IBaseTimeService baseTimeService,
                   IBaseRelationalDbService relationalDbService,
                   IAppProfileService profileService,
                   IVgyService vgyService,
                   IOptions <ApplicationSetting> applicationSettingOptions,
                   IOptions <AppJwtModel> appJwt)
 {
     _encryptionService             = encryptionService;
     _unitOfWork                    = unitOfWork;
     _externalAuthenticationService = externalAuthenticationService;
     _baseTimeService               = baseTimeService;
     _applicationSettings           = applicationSettingOptions.Value;
     _relationalDbService           = relationalDbService;
     _appJwt = appJwt.Value;
     _profileCacheService = profileCacheService;
     _vgyService          = vgyService;
     _profileService      = profileService;
 }
Example #5
0
 public UserEntityTypeConfiguration(IBaseEncryptionService encryptionService)
 {
     _encryptionService = encryptionService;
 }