1
This commit is contained in:
parent
09b31f1434
commit
d26440e5c2
@ -56,6 +56,8 @@ namespace Infrastructure.Model
|
||||
/// </summary>
|
||||
public RedisServerConfig RedisServer { get; set; }
|
||||
|
||||
public PlcSettings PlcSettings { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -1,8 +1,11 @@
|
||||
using Infrastructure.Attribute;
|
||||
using Infrastructure.Extensions;
|
||||
using Infrastructure.Model;
|
||||
using MDM.Model.Plant;
|
||||
using MDM.Model.Process;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
using NLog;
|
||||
using RIZO.Model.Mes;
|
||||
using RIZO.Model.MES.product_trace;
|
||||
@ -30,9 +33,13 @@ namespace RIZO.Service.PLCBackground.Stations.Into
|
||||
private readonly CpuType _cpuType = CpuType.S71500;
|
||||
private string WorkstationCode;
|
||||
private readonly SqlSugarClient Context;
|
||||
public PlcIntoStationService_OP70_01()
|
||||
private readonly OptionsSetting _optionsSetting;
|
||||
private readonly PlcSettings plcSetting;
|
||||
public PlcIntoStationService_OP70_01(IOptions<OptionsSetting> options)
|
||||
{
|
||||
Context = DbScoped.SugarScope.CopyNew();
|
||||
_optionsSetting= options.Value;
|
||||
plcSetting = _optionsSetting.PlcSettings;
|
||||
}
|
||||
|
||||
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user