Ejemplo n.º 1
0
 public async Task <IActionResult> EraseSession(SessionModel model, [FromServices] BackgroundJobScheduler jobScheduler)
 {
     if (IsValidRequest(model))
     {
         var cIds = jobScheduler.EraseSessionReturnConnectionIds(model.SessionId);
         await _hub.NotifySessionDeleted(cIds);
     }
     return(RedirectToAction(nameof(HomeController.Index), "Home"));
 }
 public AdminController(
     RoleManager <IdentityRole> roleManager,
     UserManager <AppUser> userManager,
     IPasswordHasher <AppUser> passwordHasher,
     BackgroundJobScheduler backgroundJobScheduler,
     ISettingRepository settingRepository,
     IReportingModuleService apiService)
 {
     _roleManager            = roleManager;
     _userManager            = userManager;
     _passwordHasher         = passwordHasher;
     _backgroundJobScheduler = backgroundJobScheduler;
     _settingRepository      = settingRepository;
     _apiService             = apiService;
 }