net6.0 Ready to test
This commit is contained in:
@ -20,7 +20,6 @@ public class Background : Models.Properties.IBackground, IBackground
|
||||
public string WorkingDirectory => _WorkingDirectory;
|
||||
|
||||
private bool _Stop;
|
||||
private readonly object? _Lock;
|
||||
private readonly Serilog.ILogger _Log;
|
||||
private DateTime _PrimaryInstanceSetAt;
|
||||
private readonly AppSettings _AppSettings;
|
||||
@ -43,9 +42,6 @@ public class Background : Models.Properties.IBackground, IBackground
|
||||
public Background(IFX.Shared.IsEnvironment isEnvironment, AppSettings appSettings, string workingDirectory)
|
||||
{
|
||||
_Stop = false;
|
||||
_Lock = new object();
|
||||
if (_Lock is null)
|
||||
{ }
|
||||
_AppSettings = appSettings;
|
||||
_Message = string.Empty;
|
||||
_IsEnvironment = isEnvironment;
|
||||
@ -241,9 +237,9 @@ public class Background : Models.Properties.IBackground, IBackground
|
||||
return result;
|
||||
}
|
||||
|
||||
public Tuple<int, object, object, string?> SetViewBag(string? directory, string? filter, bool isGaN = false, bool isSi = false, bool forPDSF = false, bool forIPDSF = false)
|
||||
public Tuple<int, Dictionary<string, Dictionary<string, List<Logistics>>>, List<Tuple<string[], Logistics>>, string?> SetViewBag(string? directory, string? filter, bool isGaN = false, bool isSi = false, bool forPDSF = false, bool forIPDSF = false)
|
||||
{
|
||||
Tuple<int, object, object, string?> result;
|
||||
Tuple<int, Dictionary<string, Dictionary<string, List<Logistics>>>, List<Tuple<string[], Logistics>>, string?> result;
|
||||
if (isGaN && isSi)
|
||||
throw new Exception();
|
||||
else if (!isGaN && !isSi)
|
||||
@ -339,24 +335,24 @@ public class Background : Models.Properties.IBackground, IBackground
|
||||
return results;
|
||||
}
|
||||
|
||||
public Tuple<int, object, object, string?> SetViewBag(Dictionary<string, object> apcLogistics, Dictionary<string, object> edaLogistics, Dictionary<string, object> eafLogLogistics, string? directory = null, string? filter = null, bool forPDSF = false, bool forIPDSF = false)
|
||||
public Tuple<int, Dictionary<string, Dictionary<string, List<Logistics>>>, List<Tuple<string[], Logistics>>, string?> SetViewBag(Dictionary<string, object> apcLogistics, Dictionary<string, object> edaLogistics, Dictionary<string, object> eafLogLogistics, string? directory = null, string? filter = null, bool forPDSF = false, bool forIPDSF = false)
|
||||
{
|
||||
Tuple<int, object, object, string?> result;
|
||||
Tuple<int, Dictionary<string, Dictionary<string, List<Logistics>>>, List<Tuple<string[], Logistics>>, string?> result;
|
||||
int files = 0;
|
||||
string apc = "APC";
|
||||
string eaf = "EAF";
|
||||
string eda = "EDA";
|
||||
string apc = "APC";
|
||||
string[] technologies = new string[] { eaf, eda, apc };
|
||||
string root = "Root";
|
||||
string error = "Error !!!";
|
||||
string staging = "Staging";
|
||||
string production = "Production";
|
||||
string development = "Development";
|
||||
string[] environments = new string[] { root, staging, production, development };
|
||||
string error = "Error !!!";
|
||||
List<Tuple<string[], Logistics>> sorted = new();
|
||||
string[] technologies = new string[] { eaf, eda, apc };
|
||||
Dictionary<string, Logistics> logisticsCollection = new();
|
||||
Dictionary<long, Tuple<string[], Logistics>> pairs = new();
|
||||
Dictionary<string, Dictionary<string, List<Logistics>>> grouped = new();
|
||||
string[] environments = new string[] { root, staging, production, development };
|
||||
foreach (string t in technologies)
|
||||
{
|
||||
if (_Stop)
|
||||
@ -488,7 +484,7 @@ public class Background : Models.Properties.IBackground, IBackground
|
||||
foreach (long sequence in sequences)
|
||||
sorted.Add(pairs[sequence]);
|
||||
}
|
||||
result = new Tuple<int, object, object, string?>(files, grouped, sorted, directory);
|
||||
result = new Tuple<int, Dictionary<string, Dictionary<string, List<Logistics>>>, List<Tuple<string[], Logistics>>, string?>(files, grouped, sorted, directory);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user