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)); }
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; }
public UserController(IUserSvc userSvc, IWebHostEnvironment env, IAdminSvc adminSvc, IEmailSvc emailSvc) { _userSvc = userSvc; _env = env; _adminSvc = adminSvc; _emailSvc = emailSvc; }
public UserController(IUnitOfWork unitOfWork, IMapper mapper, IUserSvc userSvc, IRoleSvc roleSvc) { _unitOfWork = unitOfWork; _mapper = mapper; _userSvc = userSvc; _roleSvc = roleSvc; }
public AccountController(IUserSvc userSvc, IEmailSvc emailSvc, IAuthSvc authSvc, IHttpContextAccessor httpContextAccessor) { _userSvc = userSvc; _emailSvc = emailSvc; _authSvc = authSvc; _httpContextAccessor = httpContextAccessor; }
public TableData(IUserSvc userSvc, IDeptSvc deptSvc, IRoleSvc roleSvc, IMenuSvc menuSvc, ITasksQzSvc tasksQzSvc) { _userSvc = userSvc; _deptSvc = deptSvc; _roleSvc = roleSvc; _menuSvc = menuSvc; _tasksQzSvc = tasksQzSvc; }
/// <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; }
//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; }
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(); }
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; }
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); } }
/// <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); }
public ProfileController(IUserSvc userSvc, ICookieSvc cookieSvc) { _userSvc = userSvc; _cookieSvc = cookieSvc; }
public AccountController(IUserSvc userSvc, IAuthSvc authSvc) { _userSvc = userSvc; _authSvc = authSvc; }
public UserController(IUserSvc userSvc, IDropdownRepo dropDownRepo) { _userSvc = userSvc; _dropDownRepo = dropDownRepo; _uiddlRepo = new Helpers.UIDropDownRepo(_dropDownRepo); }
public ResourceOwnerPasswordValidator(IUserSvc userSvc) { _userSvc = userSvc; }
public UserController(IUserSvc userSvc, IConfiguration config) : base(config) { Log.Information("UserController Constructor"); _userSvc = userSvc; }
public AppUser(INotesHttpContext ctx, IUserSvc userSvc) { _ctx = ctx; _userSvc = userSvc; }
public UserUnitTest() : base() { AddDbContext(); BuilderServiceProvider(InitByAutofac()); _userSvc = _serviceProvider.GetService <IUserSvc>(); }
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; }
public ApplicationUserSvc() { this.userDao = new ApplicationUserDao(); this.appSvc = GatekeeperFactory.ApplicationSvc; this.userSvc = GatekeeperFactory.UserSvc; }
public ProfileController(IUserSvc userSvc) { _userSvc = userSvc; }
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"); }
public UserController(IMapper mapper, IUserSvc userService) { _mapper = mapper; _userService = userService; }
public UserController(IUserSvc svc) { _svc = svc; }