/// <summary>Executes the specified context.</summary> /// <param name="context">The context.</param> public void Execute(IJobExecutionContext context) { JobDataMap dataMap = context.JobDetail.JobDataMap; RiseClient riseClient = new RiseClient(); var i = riseClient.SyncAllUsers(); context.Result = $"Synced {i} people"; }
/// <summary>Executes the specified context.</summary> /// <param name="context">The context.</param> public void Execute(IJobExecutionContext context) { JobDataMap dataMap = context.JobDetail.JobDataMap; RiseClient riseClient = new RiseClient(); var i = riseClient.SyncCourses(); context.Result = $"Synced {i} courses"; }