Exemplo n.º 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;
        }
Exemplo n.º 2
0
 /// <summary>
 ///     Initialize base controller with injectors.
 /// </summary>
 /// <param name="unitOfWork"></param>
 /// <param name="mapper"></param>
 /// <param name="baseTimeService"></param>
 /// <param name="relationalDbService"></param>
 /// <param name="profileService"></param>
 public ApiBaseController(IAppUnitOfWork unitOfWork, IMapper mapper, IBaseTimeService baseTimeService,
                          IBaseRelationalDbService relationalDbService, IAppProfileService profileService)
 {
     UnitOfWork          = unitOfWork;
     Mapper              = mapper;
     BaseTimeService     = baseTimeService;
     RelationalDbService = relationalDbService;
     ProfileService      = profileService;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }