forked from gpmagvs/VMSystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVMSConfigsCompareHelper.cs
More file actions
30 lines (28 loc) · 1.31 KB
/
VMSConfigsCompareHelper.cs
File metadata and controls
30 lines (28 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using AGVSystemCommonNet6.Configuration;
using AGVSystemCommonNet6.Utilis.Snap;
using System;
using System.Collections.Generic;
using VMSystem.TrafficControl;
using VMSystem.TrafficControl.Parameters;
namespace VMSystem
{
public class VMSConfigsCompareHelper : AppConfigsCompareHelper
{
public override List<CompareResultWrapper> Compare(DateTime date)
{
string snapshotOfDate = Path.Combine(SystemConfigsSnapshotFolder, date.ToString("yyyy-MM-dd"));
List<CompareResultWrapper> resultCollection = new List<CompareResultWrapper>();
try
{
var trafficControlParamsCompareResult = GetCompareResult<clsTrafficControlParameters>(Path.Combine(snapshotOfDate, "TrafficControlParams.json"), Path.Combine(AGVSConfigulator.ConfigsFilesFolder, "TrafficControlParams.json"));
if (trafficControlParamsCompareResult != null && trafficControlParamsCompareResult.Any())
resultCollection.Add(new CompareResultWrapper() { classifyName = "TrafficControlParams.json", diffResultList = trafficControlParamsCompareResult });
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
return resultCollection;
}
}
}