Ejemplo n.º 1
0
 /// <summary>
 /// 依赖注入构造器
 /// </summary>
 public RepositoryMediator(IInfoSystemRepository systemRep, IUserRepository userRep, IAuthorityRepository authorityRep, IMenuRepository menuRep, IRoleRepository roleRep, ILoginRecordRepository loginRecordRep)
 {
     this.InfoSystemRep  = systemRep;
     this.UserRep        = userRep;
     this.AuthorityRep   = authorityRep;
     this.MenuRep        = menuRep;
     this.RoleRep        = roleRep;
     this.LoginRecordRep = loginRecordRep;
 }
Ejemplo n.º 2
0
 public LoginEventHandler(IUserRepository userRep, ILoginRecordRepository recordRep)
 {
     _userRep   = userRep;
     _recordRep = recordRep;
 }
Ejemplo n.º 3
0
 public LogoutEventHandler(IOptionsSnapshot<AppSettings> appSettingsOptions, ILoginRecordRepository loginRecordRep)
 {
     _appSettings = appSettingsOptions.Value;
     _loginRecordRep = loginRecordRep;
 }