Exemplo n.º 1
0
        public void Default()
        {
            var config = new BackgroundJobConfiguration(typeof(BackgroundJob <string>));

            config.ArgsType.ShouldBe(typeof(string));
            config.JobType.ShouldBe(typeof(BackgroundJob <string>));
            config.JobName.ShouldBe(typeof(string).FullName);
        }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="jobConfiguration"></param>
 public void AddJob(BackgroundJobConfiguration jobConfiguration)
 {
     _jobConfigurationsByArgsType[jobConfiguration.ArgsType] = jobConfiguration;
     _jobConfigurationsByName[jobConfiguration.JobName]      = jobConfiguration;
 }