Esempio n. 1
0
 public TmpUnitTest() : base()
 {
     _serviceCollection.AddEncryptUtil();
     AddDbContext();
     BuilderServiceProvider();
     _userSvc = _serviceProvider.GetService <IUserSvc>();
 }
 public ProductPriceChangedIntegrationEventHandler(
     IUserSvc userSvc,
     ILogger <ProductPriceChangedIntegrationEventHandler> logger)
 {
     _userSvc = userSvc;
     _logger  = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Esempio n. 3
0
 public UserMgr(IUserSvc svc)
 {
     this.svc = svc;
     userList = (ApplicationStore<IList<IUser>>)HttpContext.Current.Application["Users"];
     if (this.userList == null || !this.userList.isValid())
         refresh();
 }
 /// <summary>
 /// Initializes a new instance of the RoleSvc class by creating a object of RoleDao class.
 /// </summary>
 public UserRoleAssignmentSvc()
 {
     this.userRoleAssignmentDao = new UserRoleAssignmentDao();
     this.userSvc = GatekeeperFactory.UserSvc;
     this.roleSvc = GatekeeperFactory.RoleSvc;
     this.appSvc = GatekeeperFactory.ApplicationSvc;
 }
Esempio n. 5
0
 public UserController(IUserSvc userSvc, IWebHostEnvironment env, IAdminSvc adminSvc, IEmailSvc emailSvc)
 {
     _userSvc  = userSvc;
     _env      = env;
     _adminSvc = adminSvc;
     _emailSvc = emailSvc;
 }
Esempio n. 6
0
 public UserController(IUnitOfWork unitOfWork, IMapper mapper, IUserSvc userSvc, IRoleSvc roleSvc)
 {
     _unitOfWork = unitOfWork;
     _mapper     = mapper;
     _userSvc    = userSvc;
     _roleSvc    = roleSvc;
 }
Esempio n. 7
0
 public AccountController(IUserSvc userSvc, IEmailSvc emailSvc, IAuthSvc authSvc, IHttpContextAccessor httpContextAccessor)
 {
     _userSvc             = userSvc;
     _emailSvc            = emailSvc;
     _authSvc             = authSvc;
     _httpContextAccessor = httpContextAccessor;
 }
Esempio n. 8
0
 public TableData(IUserSvc userSvc, IDeptSvc deptSvc, IRoleSvc roleSvc, IMenuSvc menuSvc, ITasksQzSvc tasksQzSvc)
 {
     _userSvc    = userSvc;
     _deptSvc    = deptSvc;
     _roleSvc    = roleSvc;
     _menuSvc    = menuSvc;
     _tasksQzSvc = tasksQzSvc;
 }
Esempio n. 9
0
 /// <summary>
 /// 构造函数注入
 /// </summary>
 /// <param name="mapper"></param>
 /// <param name="userSvc"></param>
 /// <param name="roleSvc"></param>
 /// <param name="menuSvc"></param>
 /// <param name="requirement"></param>
 public LoginController(IMapper mapper, IUserSvc userSvc, IRoleSvc roleSvc, IMenuSvc menuSvc, PermissionRequirement requirement)
 {
     _mapper      = mapper;
     _userSvc     = userSvc;
     _roleSvc     = roleSvc;
     _menuSvc     = menuSvc;
     _requirement = requirement;
 }
 public UserController(IUserSvc userSvc, ICookieSvc cookieSvc, IServiceProvider provider,
                       IOptions <DataProtectionKeys> dataProtectionKeys, IOptions <AppSettings> appSettings, IWritebleSettingSvc <SiteWideSettings> writableSiteWideSettings)
 {
     _userSvc            = userSvc;
     _cookieSvc          = cookieSvc;
     _provider           = provider;
     _dataProtectionKeys = dataProtectionKeys.Value;
     _appSettings        = appSettings.Value;
     _writebleSettingSvc = writableSiteWideSettings;
 }
Esempio n. 11
0
        //private readonly IActivitySvc activitySvc;
        //private readonly ApplicationDbContext db;
        //private readonly IHostingEnvironment env;
        //private readonly UserManager<ApplicationUser> userManager;

        public ProfileController(IServiceProvider provider, IOptions <AppSettings> appSettings,
                                 IOptions <DataProtectionKeys> dataProtectionKeys, ICookieSvc cookieSvc, IUserSvc userSvc)
        {
            _provider           = provider;
            _appSettings        = appSettings.Value;
            _dataProtectionKeys = dataProtectionKeys.Value;
            _cookieSvc          = cookieSvc;
            //_userSvc = new UserSvc(provider, activitySvc, cookieSvc, db, dataProtectionKeys, ev,userManager);
            _userSvc = userSvc;
        }
Esempio n. 12
0
 public HomeController(IServiceProvider provider, IOptions <AppSettings> appSettings,
                       IOptions <DataProtectionKeys> dataProtectionKeys, ICookieSvc cookieSvc, IUserSvc userSvc,
                       ApplicationDbContext db)
 {
     _provider           = provider;
     _appSettings        = appSettings.Value;
     _dataProtectionKeys = dataProtectionKeys.Value;
     _cookieSvc          = cookieSvc;
     _userSvc            = userSvc;
     _db        = db;
     _dashBoard = new DashBoardModel();
 }
Esempio n. 13
0
 public LoginController(IUserSvc userSvc, IDropdownRepo ddlRepo, ISessionSvc sessionSvc, IResetPasswordSvc resetPassSvc, IMailSvc mail, IConfigSvc configSvc)
 {
     _userSvc = userSvc;
     _ddlRepo = ddlRepo;
     //new OpMgr.DataAccess.Implementations.DropdownRepo(new OpMgr.Configurations.Implementations.ConfigSvc());
     _uiddlRepo = new Helpers.UIDropDownRepo(_ddlRepo);
     //_logger = logger;
     _configSvc    = configSvc;
     _sessionSvc   = sessionSvc;
     _resetPassSvc = resetPassSvc;
     _mail         = mail;//dependency injected for sending mails
 }
 public TransactionController(IDropdownRepo ddlRepo, IUserSvc userSvc, ICommonConfigSvc commonConfig, ITransactionLogSvc transactionLog, ISessionSvc sessionSvc, IStudentSvc studentSvc, ITransactionMasterSvc trMaster, ITransactionRuleSvc trRule, IUserTransactionSvc uTranSvc)
 {
     _ddlRepo        = ddlRepo;
     _userSvc        = userSvc;
     _commonConfig   = commonConfig;
     _transactionLog = transactionLog;
     _sessionSvc     = sessionSvc;
     _studentSvc     = studentSvc;
     _trMaster       = trMaster;
     _trRule         = trRule;
     _uTranSvc       = uTranSvc;
 }
Esempio n. 15
0
        public EquipCheckAppUser RetrieveLocalUser(EquipCheckAppUser user)
        {
            service = (IUserSvc)GetServiceFromFactory(typeof(IUserSvc).Name);

            if (service != null)
            {
                return(service.GetLocalUser(user));
            }
            else
            {
                Debug.WriteLine("Unable to get user.");
                return(null);
            }
        }
Esempio n. 16
0
        /// <summary>
        /// Method to create an EquipCheckAppUser.
        /// </summary>
        /// <param name="user"> Incoming parameter that specifies EquipCheckAppUser to create. </param>
        public EquipCheckAppUser CreateUser(EquipCheckAppUser user)
        {
            service = (IUserSvc)GetServiceFromFactory(typeof(IUserSvc).Name);

            if (service != null)
            {
                user = service.StoreEquipCheckAppUser(user);
            }
            else
            {
                user = null;
                Debug.WriteLine("Unable to create user.");
            }

            return(user);
        }
Esempio n. 17
0
 public ProfileController(IUserSvc userSvc, ICookieSvc cookieSvc)
 {
     _userSvc   = userSvc;
     _cookieSvc = cookieSvc;
 }
Esempio n. 18
0
 public AccountController(IUserSvc userSvc, IAuthSvc authSvc)
 {
     _userSvc = userSvc;
     _authSvc = authSvc;
 }
Esempio n. 19
0
 public UserController(IUserSvc userSvc, IDropdownRepo dropDownRepo)
 {
     _userSvc      = userSvc;
     _dropDownRepo = dropDownRepo;
     _uiddlRepo    = new Helpers.UIDropDownRepo(_dropDownRepo);
 }
Esempio n. 20
0
 public ResourceOwnerPasswordValidator(IUserSvc userSvc)
 {
     _userSvc = userSvc;
 }
Esempio n. 21
0
 public UserController(IUserSvc userSvc, IConfiguration config) : base(config)
 {
     Log.Information("UserController Constructor");
     _userSvc = userSvc;
 }
Esempio n. 22
0
 public AppUser(INotesHttpContext ctx, IUserSvc userSvc)
 {
     _ctx     = ctx;
     _userSvc = userSvc;
 }
Esempio n. 23
0
 public UserUnitTest() : base()
 {
     AddDbContext();
     BuilderServiceProvider(InitByAutofac());
     _userSvc = _serviceProvider.GetService <IUserSvc>();
 }
Esempio n. 24
0
 public AccountController(IComponentContext componentContext, IAccountSvc accountService, IUserSvc userService, IWxSvc wxSvc)
 {
     _accountService = accountService;
     _userService    = userService;
     _wxSvc          = wxSvc;
 }
        /// <summary>
        /// 
        /// </summary>
        private void setDefaults()
        {
            XmlConfigurator.Configure(new FileInfo("config/log4net.properties"));

            //will comment out after Spring.NET implementation
            //userSvc = (IUserSvc)factory.getService("IUserSvc");

            //Spring.NET
            XmlApplicationContext ctx = new XmlApplicationContext("config/spring.cfg.xml");
            userSvc = (IUserSvc)ctx.GetObject("userSvc");

            users = userSvc.getAllUsers();
        }
 public UserController(IUserSvc userSvc)
 {
     _userSvc = userSvc;
 }
Esempio n. 27
0
 public ApplicationUserSvc()
 {
     this.userDao = new ApplicationUserDao();
     this.appSvc = GatekeeperFactory.ApplicationSvc;
     this.userSvc = GatekeeperFactory.UserSvc;
 }
 public ProfileController(IUserSvc userSvc)
 {
     _userSvc = userSvc;
 }
Esempio n. 29
0
 public PasswordController(IUserSvc userSvc)
 {
     _userSvc = userSvc;
 }
        protected void SetUp()
        {
            XmlConfigurator.Configure(new FileInfo("config/log4net.properties"));

            neatoServer = new ConnectionManager();

            //will comment out after Spring.NET implementation
            //userSvc = (IUserSvc)factory.getService("IUserSvc");

            //Spring.NET
            XmlApplicationContext ctx = new XmlApplicationContext("config/spring.cfg.xml");
            userSvc = (IUserSvc)ctx.GetObject("userSvc");
        }
Esempio n. 31
0
 public UserController(IMapper mapper, IUserSvc userService)
 {
     _mapper      = mapper;
     _userService = userService;
 }
Esempio n. 32
0
 public UserController(IUserSvc svc)
 {
     _svc = svc;
 }