示例#1
0
 public static RecurrentJobSettings CreatedRecurrentJobSettings(RecurrentJobSettingsMetadata jobMetadata)
 {
     return(new RecurrentJobSettings
     {
         JobKey = jobMetadata.JobKey,
         JobType = jobMetadata.JobType.AssemblyQualifiedNameWithoutVersion(),
         Cron = jobMetadata.Cron
     });
 }
        public async Task Add(string cron, Type jobType, string jobKey)
        {
            var settings = new RecurrentJobSettingsMetadata(jobKey, jobType, cron);

            await _jobRepository.AddRecurrentJobSettings(RecurrentJobSettings.CreatedRecurrentJobSettings(settings));
        }