Fix consfiguration
This commit is contained in:
@@ -1,25 +1,14 @@
|
|||||||
using GerstITS.Job.Scheduling;
|
using GerstITS.Job.Scheduling;
|
||||||
using GerstITS.System.Configurations;
|
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Jobs.SayHelloWorld.Configurations
|
namespace GerstITS.Examples.Jobs.SayHelloWorld.Configurations
|
||||||
{
|
{
|
||||||
public class SayHelloWorldJobConfiguration : JobSchedulingConfigurationBase
|
public class SayHelloWorldJobConfiguration : JobSchedulingConfigurationBase
|
||||||
{
|
{
|
||||||
#region Properties
|
|
||||||
|
|
||||||
public string Name { get; }
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Constructors
|
#region Constructors
|
||||||
|
|
||||||
public SayHelloWorldJobConfiguration(Microsoft.Extensions.Configuration.IConfiguration configuration)
|
public SayHelloWorldJobConfiguration(Microsoft.Extensions.Configuration.IConfiguration configuration)
|
||||||
: base(configuration)
|
: base(configuration)
|
||||||
{
|
{
|
||||||
var prefix = this.ToConfigurationPrefix();
|
|
||||||
|
|
||||||
Name = configuration.GetValue<string>($"{prefix}:{nameof(Name)}");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
@@ -1,25 +1,14 @@
|
|||||||
using GerstITS.Job.Scheduling;
|
using GerstITS.Job.Scheduling;
|
||||||
using GerstITS.System.Configurations;
|
|
||||||
using Microsoft.Extensions.Configuration;
|
|
||||||
|
|
||||||
namespace GerstITS.Examples.Jobs.SayHelloWorld.Configurations;
|
namespace GerstITS.Examples.Jobs.SayHelloWorld.Configurations;
|
||||||
|
|
||||||
public class SayHelloWorldWithDefaultNameUsageJobConfiguration : JobSchedulingConfigurationBase
|
public class SayHelloWorldWithDefaultNameUsageJobConfiguration : JobSchedulingConfigurationBase
|
||||||
{
|
{
|
||||||
#region Properties
|
|
||||||
|
|
||||||
public string Name { get; }
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Constructors
|
#region Constructors
|
||||||
|
|
||||||
public SayHelloWorldWithDefaultNameUsageJobConfiguration(Microsoft.Extensions.Configuration.IConfiguration configuration)
|
public SayHelloWorldWithDefaultNameUsageJobConfiguration(Microsoft.Extensions.Configuration.IConfiguration configuration)
|
||||||
: base(configuration)
|
: base(configuration)
|
||||||
{
|
{
|
||||||
var prefix = this.ToConfigurationPrefix();
|
|
||||||
|
|
||||||
Name = configuration.GetValue<string>($"{prefix}:{nameof(Name)}");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user