27 lines
		
	
	
		
			715 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			715 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using GerstITS.Job.Scheduling;
 | |
| using GerstITS.System.Configurations;
 | |
| using Microsoft.Extensions.Configuration;
 | |
| 
 | |
| namespace GerstITS.Examples.Jobs.SayHelloWorld.Configurations
 | |
| {
 | |
|     public class SayHelloWorldJobConfiguration : JobSchedulingConfigurationBase
 | |
|     {
 | |
|         #region Properties
 | |
| 
 | |
|         public string Name { get; }
 | |
| 
 | |
|         #endregion
 | |
| 
 | |
|         #region Constructors
 | |
| 
 | |
|         public SayHelloWorldJobConfiguration(Microsoft.Extensions.Configuration.IConfiguration configuration)
 | |
|             : base(configuration)
 | |
|         {
 | |
|             var prefix = this.ToConfigurationPrefix();
 | |
| 
 | |
|             Name = configuration.GetValue<string>($"{prefix}:{nameof(Name)}");
 | |
|         } 
 | |
|         
 | |
|         #endregion
 | |
|     }
 | |
| } |