예제 #1
0
        /// <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";
        }
예제 #2
0
        /// <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";
        }