/// <summary> /// Constructor /// </summary> /// <param name="membershipService"></param> /// <param name="userService"></param> /// <param name="applicationService"></param> /// <param name="jwtService"></param> /// <param name="cryptographyService"></param> /// <param name="eventService"></param> /// <param name="activeTokensRepository"></param> /// <param name="revokedTokensRepository"></param> /// <param name="scheduledJobService"></param> /// <param name="geoLocationOptions"></param> /// <param name="geoLocationService"></param> public TokenService( IMembershipService membershipService, IUserService userService, IApplicationService applicationService, IJwtService jwtService, ICryptographyService cryptographyService, IEventService eventService, IActiveTokensRepository activeTokensRepository, IRevokedTokensRepository revokedTokensRepository, IScheduledJobService scheduledJobService, IGeoLocationOptions geoLocationOptions, IGeoLocationService geoLocationService) { this.membershipService = membershipService; this.userService = userService; this.applicationService = applicationService; this.jwtService = jwtService; this.cryptographyService = cryptographyService; this.eventService = eventService; this.activeTokensRepository = activeTokensRepository; this.revokedTokensRepository = revokedTokensRepository; this.geoLocationOptions = geoLocationOptions; this.geoLocationService = geoLocationService; scheduledJobService.ScheduleTokenCleanerJobsAsync().ConfigureAwait(false); }
public ScheduledJobsController(IScheduledJobService scheduledJobService) { _scheduledJobService = scheduledJobService; }