Ejemplo n.º 1
0
 public AdminController(IOptions <SiteConfig> SiteConfig, IBaseManager BaseManager, IStaffService StaffService, ILoginRecordService LoginRecordService) : base(BaseManager)
 {
     this.SiteConfig         = SiteConfig.Value;
     this.BaseManager        = BaseManager;
     this.StaffService       = StaffService;
     this.LoginRecordService = LoginRecordService;
 }
 public LogLoginRecordController(IBaseManager BaseManager, ILoginRecordService LoginRecordService, ITableOperationManager <Ld_Log_LoginRecord> TableOperationManager) : base(BaseManager)
 {
     this.BaseManager               = BaseManager;
     this.LoginRecordService        = LoginRecordService;
     this.TableOperationManager     = TableOperationManager;
     TableOperationManager.Account  = StaffID;
     TableOperationManager.NickName = StaffName;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 登录授权
 /// </summary>
 /// <param name="userInfoService"></param>
 /// <param name="loginRecordService"></param>
 /// <param name="env"></param>
 public PassportController(IUserInfoService userInfoService, ILoginRecordService loginRecordService, IHostingEnvironment env)
 {
     UserInfoService    = userInfoService;
     LoginRecordService = loginRecordService;
     _env = env;
 }
Ejemplo n.º 4
0
 public LoginAppService(IServiceProvider serviceProvider)
 {
     this.permissionService  = serviceProvider.GetService <IPermissionService>();
     this.loginRecordService = serviceProvider.GetService <ILoginRecordService>();
     this.authService        = serviceProvider.GetService <IAuthService>();
 }