feat(jobAutoControl): логика управления авто-контролем
This commit is contained in:
28
PARR.JobAutoControl/Settings/MqSettings.cs
Normal file
28
PARR.JobAutoControl/Settings/MqSettings.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using PARR.BLL.Contracts.Interfaces;
|
||||
|
||||
namespace PARR.JobAutoControl.Settings
|
||||
{
|
||||
internal class MqSettings
|
||||
{
|
||||
public Generator Generator { get; set; }
|
||||
public Activator Activator { get; set; }
|
||||
}
|
||||
|
||||
internal class Generator : IMqSettings
|
||||
{
|
||||
public string HostName { get; set; } = string.Empty;
|
||||
public string QueueName { get; set; } = string.Empty;
|
||||
public string User { get; set; } = string.Empty;
|
||||
public string Password { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
internal class Activator : IMqSettings
|
||||
{
|
||||
public string HostName { get; set; } = string.Empty;
|
||||
public string QueueName { get; set; } = string.Empty;
|
||||
public string User { get; set; } = string.Empty;
|
||||
public string Password { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
7
PARR.JobAutoControl/Settings/WorkerSettings.cs
Normal file
7
PARR.JobAutoControl/Settings/WorkerSettings.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace PARR.JobAutoControl.Settings
|
||||
{
|
||||
internal class WorkerSettings
|
||||
{
|
||||
public TimeSpan RepeatEvery { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user