v2.47.1 - Ready to test IQS query
This commit is contained in:
parent
2467f32867
commit
6e09172646
26
Adaptation/.vscode/Reactor.js
vendored
Normal file
26
Adaptation/.vscode/Reactor.js
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
// (self.length != 0) ?
|
||||||
|
// self :
|
||||||
|
// (getContextData('2', 'cds.PROCESS_JOBID', '') == '-') ?
|
||||||
|
// self :
|
||||||
|
// getContextData('2', 'cds.PROCESS_JOBID', '')
|
||||||
|
|
||||||
|
getValue(self, self.length, $('dcp.BIORAD4/Stratus/MesEntity', ''), $('dcp.BIORAD4/Stratus/Recipe', ''), getContextData('2', 'cds.PROCESS_JOBID', ''));
|
||||||
|
|
||||||
|
function getValue(value, length, mesEntity, recipe, processJobId) {
|
||||||
|
if (recipe.toUpperCase() === 'T-LOW')
|
||||||
|
return mesEntity;
|
||||||
|
else if (recipe.toUpperCase() === 'T-MID')
|
||||||
|
return mesEntity;
|
||||||
|
else if (recipe.toUpperCase() === 'T-HIGH')
|
||||||
|
return mesEntity;
|
||||||
|
else if (recipe.toUpperCase() === 'T_LOW')
|
||||||
|
return mesEntity;
|
||||||
|
else if (recipe.toUpperCase() === 'T_MID')
|
||||||
|
return mesEntity;
|
||||||
|
else if (recipe.toUpperCase() === 'T_HIGH')
|
||||||
|
return mesEntity;
|
||||||
|
else if (length !== 0 || processJobId === '-')
|
||||||
|
return value;
|
||||||
|
else
|
||||||
|
return processJobId;
|
||||||
|
}
|
26
Adaptation/.vscode/psn.js
vendored
Normal file
26
Adaptation/.vscode/psn.js
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
// (self.length != 0) ?
|
||||||
|
// self :
|
||||||
|
// (getContextData('2', 'cds.PRODUCT', '') == '-') ?
|
||||||
|
// self :
|
||||||
|
// getContextData('2', 'cds.PRODUCT', '')
|
||||||
|
|
||||||
|
getValue(self, self.length, getContextData('2', 'cds.PRODUCT', ''), $('dcp.BIORAD4/Stratus/Recipe', ''));
|
||||||
|
|
||||||
|
function getValue(value, length, product, recipe) {
|
||||||
|
if (recipe.toUpperCase() === 'T-LOW')
|
||||||
|
return 'T-Low';
|
||||||
|
else if (recipe.toUpperCase() === 'T-MID')
|
||||||
|
return 'T-Mid';
|
||||||
|
else if (recipe.toUpperCase() === 'T-HIGH')
|
||||||
|
return 'T-High';
|
||||||
|
else if (recipe.toUpperCase() === 'T_LOW')
|
||||||
|
return 'T-Low';
|
||||||
|
else if (recipe.toUpperCase() === 'T_MID')
|
||||||
|
return 'T-Mid';
|
||||||
|
else if (recipe.toUpperCase() === 'T_HIGH')
|
||||||
|
return 'T-High';
|
||||||
|
else if (length !== 0 || product === '-')
|
||||||
|
return value;
|
||||||
|
else
|
||||||
|
return product;
|
||||||
|
}
|
@ -103,10 +103,10 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FileCopy(string reportFullPath, DateTime dateTime)
|
private void FileCopy<T>(string reportFullPath, DateTime dateTime, List<T> descriptions) where T : Shared.Properties.IDescription
|
||||||
{
|
{
|
||||||
bool isDummyRun = false;
|
bool isDummyRun = false;
|
||||||
List<(Shared.Properties.IScopeInfo, string)> tuples = new();
|
List<(Shared.Properties.IScopeInfo, string)> collection = new();
|
||||||
string successDirectory = _FileConnectorConfiguration.AlternateTargetFolder;
|
string successDirectory = _FileConnectorConfiguration.AlternateTargetFolder;
|
||||||
string fileNameAfterUnderscoreSplit = GetFileNameAfterUnderscoreSplit(reportFullPath);
|
string fileNameAfterUnderscoreSplit = GetFileNameAfterUnderscoreSplit(reportFullPath);
|
||||||
string duplicateDirectory = Path.Combine(_FileConnectorConfiguration.TargetFileLocation, fileNameAfterUnderscoreSplit);
|
string duplicateDirectory = Path.Combine(_FileConnectorConfiguration.TargetFileLocation, fileNameAfterUnderscoreSplit);
|
||||||
@ -114,7 +114,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
_ = Directory.CreateDirectory(duplicateDirectory);
|
_ = Directory.CreateDirectory(duplicateDirectory);
|
||||||
string duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath));
|
string duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath));
|
||||||
File.Copy(reportFullPath, duplicateFile, overwrite: true);
|
File.Copy(reportFullPath, duplicateFile, overwrite: true);
|
||||||
WaitForFileConsumption(dateTime, isDummyRun, successDirectory, duplicateDirectory, tuples, duplicateFile);
|
WaitForFileConsumption(dateTime, descriptions, isDummyRun, successDirectory, duplicateDirectory, collection, duplicateFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
|
private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
|
||||||
@ -127,7 +127,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
|
List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
|
||||||
Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
|
Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
|
||||||
if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
|
if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
|
||||||
FileCopy(reportFullPath, dateTime);
|
FileCopy(reportFullPath, dateTime, descriptions);
|
||||||
results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
|
results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
@ -100,13 +100,21 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
const string site = "sjc";
|
const string site = "sjc";
|
||||||
string stateName = string.Concat("Dummy_", _EventName);
|
string stateName = string.Concat("Dummy_", _EventName);
|
||||||
const string monInURL = "http://moninhttp.sjc.infineon.com/input/text";
|
const string monInURL = "http://moninhttp.sjc.infineon.com/input/text";
|
||||||
|
#pragma warning disable CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
|
#pragma warning disable CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
MonIn monIn = MonIn.GetInstance(monInURL);
|
MonIn monIn = MonIn.GetInstance(monInURL);
|
||||||
|
#pragma warning restore CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
|
#pragma warning restore CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (warning)
|
if (warning)
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
File.AppendAllLines(traceDummyFile, new string[] { site, monARessource, stateName, State.Warning.ToString() });
|
File.AppendAllLines(traceDummyFile, new string[] { site, monARessource, stateName, State.Warning.ToString() });
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
_ = monIn.SendStatus(site, monARessource, stateName, State.Warning);
|
_ = monIn.SendStatus(site, monARessource, stateName, State.Warning);
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
for (int i = 1; i < 12; i++)
|
for (int i = 1; i < 12; i++)
|
||||||
Thread.Sleep(500);
|
Thread.Sleep(500);
|
||||||
}
|
}
|
||||||
@ -129,8 +137,12 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
foreach (string file in files)
|
foreach (string file in files)
|
||||||
File.Move(file, string.Concat(targetFileLocation, file.Substring(inProcessDirectory.Length)));
|
File.Move(file, string.Concat(targetFileLocation, file.Substring(inProcessDirectory.Length)));
|
||||||
}
|
}
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
File.AppendAllLines(traceDummyFile, new string[] { site, monARessource, stateName, State.Ok.ToString() });
|
File.AppendAllLines(traceDummyFile, new string[] { site, monARessource, stateName, State.Ok.ToString() });
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
_ = monIn.SendStatus(site, monARessource, stateName, State.Ok);
|
_ = monIn.SendStatus(site, monARessource, stateName, State.Ok);
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
@ -139,8 +151,12 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
try
|
try
|
||||||
{ _SMTP.SendHighPriorityEmailMessage(subject, body); }
|
{ _SMTP.SendHighPriorityEmailMessage(subject, body); }
|
||||||
catch (Exception) { }
|
catch (Exception) { }
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
File.AppendAllLines(traceDummyFile, new string[] { site, monARessource, stateName, State.Critical.ToString(), exception.Message, exception.StackTrace });
|
File.AppendAllLines(traceDummyFile, new string[] { site, monARessource, stateName, State.Critical.ToString(), exception.Message, exception.StackTrace });
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
_ = monIn.SendStatus(site, monARessource, stateName, State.Critical);
|
_ = monIn.SendStatus(site, monARessource, stateName, State.Critical);
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,17 +103,17 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FileCopy(string reportFullPath, DateTime dateTime)
|
private void FileCopy<T>(string reportFullPath, DateTime dateTime, List<T> descriptions) where T : Shared.Properties.IDescription
|
||||||
{
|
{
|
||||||
bool isDummyRun = false;
|
bool isDummyRun = false;
|
||||||
string successDirectory = string.Empty;
|
string successDirectory = string.Empty;
|
||||||
List<(Shared.Properties.IScopeInfo, string)> tuples = new();
|
List<(Shared.Properties.IScopeInfo, string)> collection = new();
|
||||||
string duplicateDirectory = Path.Combine(_FileConnectorConfiguration.SourceFileLocation, _CellInstanceName);
|
string duplicateDirectory = Path.Combine(_FileConnectorConfiguration.SourceFileLocation, _CellInstanceName);
|
||||||
if (!Directory.Exists(duplicateDirectory))
|
if (!Directory.Exists(duplicateDirectory))
|
||||||
_ = Directory.CreateDirectory(duplicateDirectory);
|
_ = Directory.CreateDirectory(duplicateDirectory);
|
||||||
string duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath));
|
string duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath));
|
||||||
File.Copy(reportFullPath, duplicateFile, overwrite: true);
|
File.Copy(reportFullPath, duplicateFile, overwrite: true);
|
||||||
WaitForFileConsumption(dateTime, isDummyRun, successDirectory, duplicateDirectory, tuples, duplicateFile);
|
WaitForFileConsumption(dateTime, descriptions, isDummyRun, successDirectory, duplicateDirectory, collection, duplicateFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
|
private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
|
||||||
@ -128,7 +128,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
|
List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
|
||||||
Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
|
Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
|
||||||
if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
|
if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
|
||||||
FileCopy(reportFullPath, dateTime);
|
FileCopy(reportFullPath, dateTime, descriptions);
|
||||||
results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
|
results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ namespace Adaptation.FileHandlers.OpenInsight;
|
|||||||
public class FileRead : Shared.FileRead, IFileRead
|
public class FileRead : Shared.FileRead, IFileRead
|
||||||
{
|
{
|
||||||
|
|
||||||
|
private readonly string _IqsConnectionString;
|
||||||
private readonly string _OpenInsightFilePattern;
|
private readonly string _OpenInsightFilePattern;
|
||||||
|
|
||||||
public FileRead(ISMTP smtp, Dictionary<string, string> fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList<ModelObjectParameterDefinition> modelObjectParameters, string equipmentDictionaryName, Dictionary<string, List<long>> dummyRuns, Dictionary<long, List<string>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
|
public FileRead(ISMTP smtp, Dictionary<string, string> fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList<ModelObjectParameterDefinition> modelObjectParameters, string equipmentDictionaryName, Dictionary<string, List<long>> dummyRuns, Dictionary<long, List<string>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
|
||||||
@ -30,6 +31,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
throw new Exception(cellInstanceConnectionName);
|
throw new Exception(cellInstanceConnectionName);
|
||||||
if (!_IsDuplicator)
|
if (!_IsDuplicator)
|
||||||
throw new Exception(cellInstanceConnectionName);
|
throw new Exception(cellInstanceConnectionName);
|
||||||
|
_IqsConnectionString = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "IQS.ConnectionString");
|
||||||
_OpenInsightFilePattern = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "OpenInsight.FilePattern");
|
_OpenInsightFilePattern = GetPropertyValue(cellInstanceConnectionName, modelObjectParameters, "OpenInsight.FilePattern");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,8 +134,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
private void SaveOpenInsightFile(string reportFullPath, DateTime dateTime, List<Stratus.Description> descriptions, Test[] tests)
|
private void SaveOpenInsightFile(string reportFullPath, DateTime dateTime, List<Stratus.Description> descriptions, Test[] tests)
|
||||||
{
|
{
|
||||||
bool isDummyRun = false;
|
bool isDummyRun = false;
|
||||||
string lines = GetLines(descriptions);
|
List<(Shared.Properties.IScopeInfo, string)> collection = new();
|
||||||
List<(Shared.Properties.IScopeInfo, string)> tuples = new();
|
|
||||||
string successDirectory = _FileConnectorConfiguration.AlternateTargetFolder;
|
string successDirectory = _FileConnectorConfiguration.AlternateTargetFolder;
|
||||||
string parentParent = GetParentParent(_FileConnectorConfiguration.SourceFileLocation);
|
string parentParent = GetParentParent(_FileConnectorConfiguration.SourceFileLocation);
|
||||||
if (parentParent.Contains(_CellInstanceName))
|
if (parentParent.Contains(_CellInstanceName))
|
||||||
@ -142,13 +143,18 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
if (!Directory.Exists(duplicateDirectory))
|
if (!Directory.Exists(duplicateDirectory))
|
||||||
_ = Directory.CreateDirectory(duplicateDirectory);
|
_ = Directory.CreateDirectory(duplicateDirectory);
|
||||||
string duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath));
|
string duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath));
|
||||||
if (tests.Any())
|
if (descriptions.Any() && tests.Any())
|
||||||
{
|
{
|
||||||
ScopeInfo scopeInfo = new(tests[0], _OpenInsightFilePattern);
|
string lines = GetLines(descriptions);
|
||||||
if (!string.IsNullOrEmpty(lines))
|
if (!string.IsNullOrEmpty(lines))
|
||||||
tuples.Add(new(scopeInfo, lines));
|
collection.Add(new(new ScopeInfo(tests[0], _OpenInsightFilePattern), lines));
|
||||||
|
_ = FromIQS.GetCommandText(_IqsConnectionString, _Logistics, descriptions[0]);
|
||||||
|
// string commandText = FromIQS.GetCommandText(_IqsConnectionString, _Logistics, descriptions[0]);
|
||||||
|
// if (!string.IsNullOrEmpty(commandText))
|
||||||
|
// collection.Add(new(new ScopeInfo(tests[0], _OpenInsightFilePattern), commandText));
|
||||||
}
|
}
|
||||||
WaitForFileConsumption(dateTime, isDummyRun, successDirectory, duplicateDirectory, tuples, duplicateFile);
|
if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
|
||||||
|
WaitForFileConsumption(dateTime, descriptions, isDummyRun, successDirectory, duplicateDirectory, collection, duplicateFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
|
private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
|
||||||
|
103
Adaptation/FileHandlers/OpenInsight/FromIQS.cs
Normal file
103
Adaptation/FileHandlers/OpenInsight/FromIQS.cs
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
using Adaptation.Shared;
|
||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Globalization;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.Json;
|
||||||
|
|
||||||
|
namespace Adaptation.FileHandlers.OpenInsight;
|
||||||
|
|
||||||
|
public class FromIQS
|
||||||
|
{
|
||||||
|
|
||||||
|
#nullable enable
|
||||||
|
|
||||||
|
private static string GetCommandText(Logistics logistics, Stratus.Description description, string dateTime, string? sid)
|
||||||
|
{
|
||||||
|
StringBuilder result = new();
|
||||||
|
_ = result
|
||||||
|
.AppendLine(" select ")
|
||||||
|
.AppendLine(" se.f_sgrp se_sgrp, ")
|
||||||
|
.AppendLine(" se.f_sgtm se_sgtm, ")
|
||||||
|
.AppendLine(" se.f_tsno se_tsno, ")
|
||||||
|
.AppendLine(" se.f_val se_val, ")
|
||||||
|
.AppendLine(" rd.f_name rd_name, ")
|
||||||
|
.AppendLine(" jd.f_name jd_name, ")
|
||||||
|
.AppendLine(" pl.f_name pl_name, ")
|
||||||
|
.AppendLine(" pd.f_name pd_name, ")
|
||||||
|
.AppendLine(" td.f_test td_test, ")
|
||||||
|
.AppendLine(" td.f_name td_name ")
|
||||||
|
.AppendLine(" from [spcepiworld].[dbo].[sgrp_ext] se ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[prcs_dat] rd ")
|
||||||
|
.AppendLine(" on se.f_prcs = rd.f_prcs ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[job_dat] jd ")
|
||||||
|
.AppendLine(" on se.f_job = jd.f_job ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[part_lot] pl ")
|
||||||
|
.AppendLine(" on se.f_lot = pl.f_lot ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[part_dat] pd ")
|
||||||
|
.AppendLine(" on se.f_part = pd.f_part ")
|
||||||
|
.AppendLine(" join [spcepiworld].[dbo].[test_dat] td ")
|
||||||
|
.AppendLine(" on se.f_test = td.f_test ")
|
||||||
|
.AppendLine(" where se.f_flag = 0 ");
|
||||||
|
if (!string.IsNullOrEmpty(sid))
|
||||||
|
_ = result.Append(" and se.f_sgrp = ").Append(sid).AppendLine(" ");
|
||||||
|
_ = result
|
||||||
|
.Append(" and rd.f_name = '").Append(description.Reactor).AppendLine("' ")
|
||||||
|
.Append(" and pd.f_name = '").Append(description.PSN).AppendLine("' ")
|
||||||
|
.AppendLine(" and jd.f_name in ('BIORAD4', 'BIORAD5') ")
|
||||||
|
.Append(" and jd.f_name = '").Append(logistics.MesEntity).AppendLine("' ")
|
||||||
|
.Append(" and pl.f_name = '").Append(description.RDS).AppendLine("' ")
|
||||||
|
.Append(" and dateadd(HH, -7, (dateadd(SS, convert(bigint, se.f_sgtm), '19700101'))) = '").Append(dateTime).AppendLine("' ")
|
||||||
|
.AppendLine(" for json path ");
|
||||||
|
return result.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static StringBuilder GetForJsonPath(string connectionString, string commandText)
|
||||||
|
{
|
||||||
|
StringBuilder stringBuilder = new();
|
||||||
|
using SqlConnection sqlConnection = new(connectionString);
|
||||||
|
sqlConnection.Open();
|
||||||
|
using SqlCommand sqlCommand = new(commandText, sqlConnection);
|
||||||
|
SqlDataReader sqlDataReader = sqlCommand.ExecuteReader(CommandBehavior.SequentialAccess);
|
||||||
|
while (sqlDataReader.Read())
|
||||||
|
_ = stringBuilder.Append(sqlDataReader.GetString(0));
|
||||||
|
return stringBuilder;
|
||||||
|
}
|
||||||
|
|
||||||
|
internal static string GetCommandText(string connectionString, Logistics logistics, Stratus.Description description)
|
||||||
|
{
|
||||||
|
string result;
|
||||||
|
string dateTime;
|
||||||
|
string dateFormat = Stratus.Description.GetDateFormat();
|
||||||
|
if (DateTime.TryParseExact(description.Date, dateFormat, CultureInfo.InvariantCulture, DateTimeStyles.None, out DateTime dateTimeParsed))
|
||||||
|
dateTime = dateTimeParsed.ToString("yyyy-MM-dd HH:mm:ss");
|
||||||
|
else if (DateTime.TryParse(description.Date, CultureInfo.InvariantCulture, DateTimeStyles.None, out dateTimeParsed))
|
||||||
|
dateTime = dateTimeParsed.ToString("yyyy-MM-dd HH:mm:ss");
|
||||||
|
else
|
||||||
|
dateTime = logistics.DateTimeFromSequence.ToString("yyyy-MM-dd HH:mm:ss");
|
||||||
|
string commandText = GetCommandText(logistics, description, dateTime, sid: null);
|
||||||
|
StringBuilder stringBuilder = GetForJsonPath(connectionString, commandText);
|
||||||
|
if (stringBuilder.Length == 0)
|
||||||
|
result = commandText;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
JsonElement[]? jsonElements = JsonSerializer.Deserialize<JsonElement[]>(stringBuilder.ToString());
|
||||||
|
if (jsonElements is null || !jsonElements.Any() || jsonElements[0].ValueKind != JsonValueKind.Object)
|
||||||
|
result = commandText;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
JsonProperty[] jsonProperties = jsonElements[0].EnumerateObject().ToArray();
|
||||||
|
if (!jsonProperties.Any() || jsonProperties[0].Name != "se_sgrp")
|
||||||
|
result = commandText;
|
||||||
|
else
|
||||||
|
result = GetCommandText(logistics, description, dateTime, sid: jsonProperties[0].Value.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
}
|
@ -84,8 +84,7 @@ public class WSRequest
|
|||||||
detail.Points[i].Thickness = segments[i];
|
detail.Points[i].Thickness = segments[i];
|
||||||
Details.Add(detail);
|
Details.Add(detail);
|
||||||
}
|
}
|
||||||
if (Date is null)
|
Date ??= logistics.DateTimeFromSequence.ToString();
|
||||||
Date = logistics.DateTimeFromSequence.ToString();
|
|
||||||
if (UniqueId is null && Details.Any())
|
if (UniqueId is null && Details.Any())
|
||||||
UniqueId = Details[0].HeaderUniqueId;
|
UniqueId = Details[0].HeaderUniqueId;
|
||||||
}
|
}
|
||||||
|
@ -103,15 +103,15 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FileCopy(string reportFullPath, DateTime dateTime)
|
private void FileCopy<T>(string reportFullPath, DateTime dateTime, List<T> descriptions) where T : Shared.Properties.IDescription
|
||||||
{
|
{
|
||||||
bool isDummyRun = false;
|
bool isDummyRun = false;
|
||||||
string successDirectory = string.Empty;
|
string successDirectory = string.Empty;
|
||||||
List<(Shared.Properties.IScopeInfo, string)> tuples = new();
|
List<(Shared.Properties.IScopeInfo, string)> collection = new();
|
||||||
string duplicateDirectory = _FileConnectorConfiguration.TargetFileLocation;
|
string duplicateDirectory = _FileConnectorConfiguration.TargetFileLocation;
|
||||||
string duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath));
|
string duplicateFile = Path.Combine(duplicateDirectory, Path.GetFileName(reportFullPath));
|
||||||
File.Copy(reportFullPath, duplicateFile, overwrite: true);
|
File.Copy(reportFullPath, duplicateFile, overwrite: true);
|
||||||
WaitForFileConsumption(dateTime, isDummyRun, successDirectory, duplicateDirectory, tuples, duplicateFile);
|
WaitForFileConsumption(dateTime, descriptions, isDummyRun, successDirectory, duplicateDirectory, collection, duplicateFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
|
private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
|
||||||
@ -126,7 +126,7 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
|
List<Shared.Properties.IDescription> descriptions = GetDuplicatorDescriptions(jsonElements);
|
||||||
Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
|
Test[] tests = (from l in descriptions select (Test)l.Test).ToArray();
|
||||||
if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
|
if (_IsEAFHosted && _FileConnectorConfiguration.FileScanningIntervalInSeconds > 0)
|
||||||
FileCopy(reportFullPath, dateTime);
|
FileCopy(reportFullPath, dateTime, descriptions);
|
||||||
results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
|
results = new Tuple<string, Test[], JsonElement[], List<FileInfo>>(pdsf.Item1, tests, jsonElements, new List<FileInfo>());
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
@ -192,7 +192,7 @@ public class Description : IDescription, Shared.Properties.IDescription
|
|||||||
ProcessJobID = logistics.ProcessJobID,
|
ProcessJobID = logistics.ProcessJobID,
|
||||||
MID = logistics.MID,
|
MID = logistics.MID,
|
||||||
//
|
//
|
||||||
Date = processData.Date,
|
Date = processData.Date.ToString(GetDateFormat()),
|
||||||
Employee = processData.Employee,
|
Employee = processData.Employee,
|
||||||
Lot = processData.Batch,
|
Lot = processData.Batch,
|
||||||
PSN = processData.PSN,
|
PSN = processData.PSN,
|
||||||
@ -274,4 +274,6 @@ public class Description : IDescription, Shared.Properties.IDescription
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static string GetDateFormat() => "MM/dd/yyyy hh:mm:ss tt";
|
||||||
|
|
||||||
}
|
}
|
@ -14,6 +14,7 @@ namespace Adaptation.FileHandlers.Stratus;
|
|||||||
public class FileRead : Shared.FileRead, IFileRead
|
public class FileRead : Shared.FileRead, IFileRead
|
||||||
{
|
{
|
||||||
|
|
||||||
|
private long? _TickOffset;
|
||||||
private readonly string _OriginalDataBioRad;
|
private readonly string _OriginalDataBioRad;
|
||||||
|
|
||||||
public FileRead(ISMTP smtp, Dictionary<string, string> fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList<ModelObjectParameterDefinition> modelObjectParameters, string equipmentDictionaryName, Dictionary<string, List<long>> dummyRuns, Dictionary<long, List<string>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
|
public FileRead(ISMTP smtp, Dictionary<string, string> fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList<ModelObjectParameterDefinition> modelObjectParameters, string equipmentDictionaryName, Dictionary<string, List<long>> dummyRuns, Dictionary<long, List<string>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
|
||||||
@ -99,7 +100,8 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
|
private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
|
||||||
{
|
{
|
||||||
Tuple<string, Test[], JsonElement[], List<FileInfo>> results = new(string.Empty, null, null, new List<FileInfo>());
|
Tuple<string, Test[], JsonElement[], List<FileInfo>> results = new(string.Empty, null, null, new List<FileInfo>());
|
||||||
_Logistics = new Logistics(this, reportFullPath, useSplitForMID: true);
|
_TickOffset ??= new FileInfo(reportFullPath).LastWriteTime.Ticks - dateTime.Ticks;
|
||||||
|
_Logistics = new Logistics(this, _TickOffset.Value, reportFullPath, useSplitForMID: true);
|
||||||
SetFileParameterLotIDToLogisticsMID();
|
SetFileParameterLotIDToLogisticsMID();
|
||||||
if (_Logistics.FileInfo.Length < _MinFileLength)
|
if (_Logistics.FileInfo.Length < _MinFileLength)
|
||||||
results.Item4.Add(_Logistics.FileInfo);
|
results.Item4.Add(_Logistics.FileInfo);
|
||||||
|
@ -23,7 +23,7 @@ public partial class ProcessData : IProcessData
|
|||||||
public string MesEntity { get; set; }
|
public string MesEntity { get; set; }
|
||||||
public string Batch { get; set; }
|
public string Batch { get; set; }
|
||||||
public string Cassette { get; set; }
|
public string Cassette { get; set; }
|
||||||
public string Date { get; set; }
|
public DateTime Date { get; set; }
|
||||||
public string FilePath { get; set; }
|
public string FilePath { get; set; }
|
||||||
public string Layer { get; set; }
|
public string Layer { get; set; }
|
||||||
public string MeanThickness { get; set; }
|
public string MeanThickness { get; set; }
|
||||||
@ -376,12 +376,12 @@ public partial class ProcessData : IProcessData
|
|||||||
{
|
{
|
||||||
string psn;
|
string psn;
|
||||||
string rds;
|
string rds;
|
||||||
string date;
|
|
||||||
string text;
|
string text;
|
||||||
string zone;
|
string zone;
|
||||||
string batch;
|
string batch;
|
||||||
string layer;
|
string layer;
|
||||||
string title;
|
string title;
|
||||||
|
DateTime date;
|
||||||
string reactor;
|
string reactor;
|
||||||
string cassette;
|
string cassette;
|
||||||
string employee;
|
string employee;
|
||||||
@ -411,8 +411,8 @@ public partial class ProcessData : IProcessData
|
|||||||
string dateTimeText = GetToEOL();
|
string dateTimeText = GetToEOL();
|
||||||
if (dateTimeText.EndsWith("."))
|
if (dateTimeText.EndsWith("."))
|
||||||
dateTimeText = dateTimeText.Remove(dateTimeText.Length - 1, 1);
|
dateTimeText = dateTimeText.Remove(dateTimeText.Length - 1, 1);
|
||||||
DateTime dateTime = GetDateTime(logistics, dateTimeText);
|
date = GetDateTime(logistics, dateTimeText);
|
||||||
date = dateTime.ToString();
|
;
|
||||||
Descriptor descriptor = GetDescriptor(text);
|
Descriptor descriptor = GetDescriptor(text);
|
||||||
cassette = descriptor.Cassette;
|
cassette = descriptor.Cassette;
|
||||||
psn = descriptor.PSN;
|
psn = descriptor.PSN;
|
||||||
@ -573,8 +573,7 @@ public partial class ProcessData : IProcessData
|
|||||||
{
|
{
|
||||||
detail.HeaderUniqueId = UniqueId;
|
detail.HeaderUniqueId = UniqueId;
|
||||||
detail.UniqueId = string.Concat(UniqueId, detail.UniqueId);
|
detail.UniqueId = string.Concat(UniqueId, detail.UniqueId);
|
||||||
if (detail.Points is null)
|
detail.Points ??= new List<Point>();
|
||||||
detail.Points = new List<Point>();
|
|
||||||
foreach (Point bioRadDetail in detail.Points)
|
foreach (Point bioRadDetail in detail.Points)
|
||||||
{
|
{
|
||||||
bioRadDetail.HeaderUniqueId = detail.HeaderUniqueId;
|
bioRadDetail.HeaderUniqueId = detail.HeaderUniqueId;
|
||||||
|
@ -14,6 +14,7 @@ namespace Adaptation.FileHandlers.txt;
|
|||||||
public class FileRead : Shared.FileRead, IFileRead
|
public class FileRead : Shared.FileRead, IFileRead
|
||||||
{
|
{
|
||||||
|
|
||||||
|
private long? _TickOffset;
|
||||||
private readonly string _OriginalDataBioRad;
|
private readonly string _OriginalDataBioRad;
|
||||||
|
|
||||||
public FileRead(ISMTP smtp, Dictionary<string, string> fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList<ModelObjectParameterDefinition> modelObjectParameters, string equipmentDictionaryName, Dictionary<string, List<long>> dummyRuns, Dictionary<long, List<string>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
|
public FileRead(ISMTP smtp, Dictionary<string, string> fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList<ModelObjectParameterDefinition> modelObjectParameters, string equipmentDictionaryName, Dictionary<string, List<long>> dummyRuns, Dictionary<long, List<string>> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
|
||||||
@ -99,7 +100,8 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
|
private Tuple<string, Test[], JsonElement[], List<FileInfo>> GetExtractResult(string reportFullPath, DateTime dateTime)
|
||||||
{
|
{
|
||||||
Tuple<string, Test[], JsonElement[], List<FileInfo>> results = new(string.Empty, null, null, new List<FileInfo>());
|
Tuple<string, Test[], JsonElement[], List<FileInfo>> results = new(string.Empty, null, null, new List<FileInfo>());
|
||||||
_Logistics = new Logistics(this, reportFullPath, useSplitForMID: false);
|
_TickOffset ??= new FileInfo(reportFullPath).LastWriteTime.Ticks - dateTime.Ticks;
|
||||||
|
_Logistics = new Logistics(this, _TickOffset.Value, reportFullPath, useSplitForMID: true);
|
||||||
SetFileParameterLotID(_Logistics.MID);
|
SetFileParameterLotID(_Logistics.MID);
|
||||||
FileInfo fileInfo = new(reportFullPath);
|
FileInfo fileInfo = new(reportFullPath);
|
||||||
if (fileInfo.Length < _MinFileLength)
|
if (fileInfo.Length < _MinFileLength)
|
||||||
|
@ -52,8 +52,7 @@ public partial class ProcessData
|
|||||||
}
|
}
|
||||||
// Making sure that the file has been released
|
// Making sure that the file has been released
|
||||||
rawDataFilePtr.Close();
|
rawDataFilePtr.Close();
|
||||||
if (rawDataFilePtr is not null)
|
rawDataFilePtr?.Dispose();
|
||||||
rawDataFilePtr.Dispose();
|
|
||||||
}
|
}
|
||||||
if (cassetteScanCompleted is null || !cassetteScanCompleted.Value)
|
if (cassetteScanCompleted is null || !cassetteScanCompleted.Value)
|
||||||
// Raw source file has an incomplete data set or it only contains a "Process failed" and should not be
|
// Raw source file has an incomplete data set or it only contains a "Process failed" and should not be
|
||||||
@ -456,7 +455,7 @@ public partial class ProcessData
|
|||||||
cassetteDateTime = logistics.DateTimeFromSequence.AddTicks(count * -1);
|
cassetteDateTime = logistics.DateTimeFromSequence.AddTicks(count * -1);
|
||||||
user = processData.Employee?.ToString() ?? "";
|
user = processData.Employee?.ToString() ?? "";
|
||||||
recipe = detail.Recipe?.ToString() ?? "";
|
recipe = detail.Recipe?.ToString() ?? "";
|
||||||
_ = contents.Append("Bio-Rad ").Append("QS400MEPI".PadRight(17)).Append("Recipe: ").Append(recipe.PadRight(25)).AppendLine(processData.Date);
|
_ = contents.Append("Bio-Rad ").Append("QS400MEPI".PadRight(17)).Append("Recipe: ").Append(recipe.PadRight(25)).AppendLine(processData.Date.ToString(Stratus.Description.GetDateFormat()));
|
||||||
_ = contents.Append("operator: ").Append(user.PadRight(22)).Append("batch: BIORAD #").AppendLine(logistics.JobID.Substring(6, 1));
|
_ = contents.Append("operator: ").Append(user.PadRight(22)).Append("batch: BIORAD #").AppendLine(logistics.JobID.Substring(6, 1));
|
||||||
_ = contents.Append("cassette: ").Append("".PadRight(22)).Append("wafer: ").AppendLine(processData.Cassette);
|
_ = contents.Append("cassette: ").Append("".PadRight(22)).Append("wafer: ").AppendLine(processData.Cassette);
|
||||||
_ = contents.AppendLine("--------------------------------------------------------------------------------");
|
_ = contents.AppendLine("--------------------------------------------------------------------------------");
|
||||||
|
@ -4,20 +4,26 @@ namespace Infineon.Monitoring.MonA;
|
|||||||
|
|
||||||
public interface IMonIn
|
public interface IMonIn
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
string SendStatus(string site, string resource, string stateName, State state);
|
string SendStatus(string site, string resource, string stateName, State state);
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
|
|
||||||
string SendStatus(
|
string SendStatus(
|
||||||
string site,
|
string site,
|
||||||
DateTime timeStamp,
|
DateTime timeStamp,
|
||||||
string resource,
|
string resource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state);
|
State state);
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
|
|
||||||
string SendStatus(
|
string SendStatus(
|
||||||
string site,
|
string site,
|
||||||
string resource,
|
string resource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state,
|
State state,
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
string description);
|
string description);
|
||||||
|
|
||||||
string SendStatus(
|
string SendStatus(
|
||||||
@ -25,7 +31,9 @@ public interface IMonIn
|
|||||||
DateTime timeStamp,
|
DateTime timeStamp,
|
||||||
string resource,
|
string resource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state,
|
State state,
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
string description);
|
string description);
|
||||||
|
|
||||||
string SendStatus(
|
string SendStatus(
|
||||||
@ -33,7 +41,9 @@ public interface IMonIn
|
|||||||
string resource,
|
string resource,
|
||||||
string subresource,
|
string subresource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state);
|
State state);
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
|
|
||||||
string SendStatus(
|
string SendStatus(
|
||||||
string site,
|
string site,
|
||||||
@ -41,14 +51,18 @@ public interface IMonIn
|
|||||||
string resource,
|
string resource,
|
||||||
string subresource,
|
string subresource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state);
|
State state);
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
|
|
||||||
string SendStatus(
|
string SendStatus(
|
||||||
string site,
|
string site,
|
||||||
string resource,
|
string resource,
|
||||||
string subresource,
|
string subresource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state,
|
State state,
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
string description);
|
string description);
|
||||||
|
|
||||||
string SendStatus(
|
string SendStatus(
|
||||||
@ -57,7 +71,9 @@ public interface IMonIn
|
|||||||
string resource,
|
string resource,
|
||||||
string subresource,
|
string subresource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state,
|
State state,
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
string description);
|
string description);
|
||||||
|
|
||||||
string SendPerformanceMessage(
|
string SendPerformanceMessage(
|
||||||
|
@ -6,18 +6,28 @@ using System.Text;
|
|||||||
|
|
||||||
namespace Infineon.Monitoring.MonA;
|
namespace Infineon.Monitoring.MonA;
|
||||||
|
|
||||||
|
#pragma warning disable CS0436 // The type 'IMonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\IMonIn.cs' conflicts with the imported type 'IMonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\IMonIn.cs'.
|
||||||
public class MonIn : IMonIn, IDisposable
|
public class MonIn : IMonIn, IDisposable
|
||||||
|
#pragma warning restore CS0436 // The type 'IMonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\IMonIn.cs' conflicts with the imported type 'IMonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\IMonIn.cs'.
|
||||||
{
|
{
|
||||||
private static readonly DateTime _Utc1970DateTime = new(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
private static readonly DateTime _Utc1970DateTime = new(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
||||||
public const string MonInUrl = "http://moninhttp.{0}.infineon.com/input/text";
|
public const string MonInUrl = "http://moninhttp.{0}.infineon.com/input/text";
|
||||||
|
#pragma warning disable CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
private static readonly Dictionary<string, MonIn> _Instances = new();
|
private static readonly Dictionary<string, MonIn> _Instances = new();
|
||||||
|
#pragma warning restore CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
|
#pragma warning disable CS0436 // The type 'ExtWebClient' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\ExtWebClient.cs' conflicts with the imported type 'ExtWebClient' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\ExtWebClient.cs'.
|
||||||
private readonly ExtWebClient _WebClient;
|
private readonly ExtWebClient _WebClient;
|
||||||
|
#pragma warning restore CS0436 // The type 'ExtWebClient' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\ExtWebClient.cs' conflicts with the imported type 'ExtWebClient' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\ExtWebClient.cs'.
|
||||||
private readonly string _MonInUrl;
|
private readonly string _MonInUrl;
|
||||||
private static CultureInfo _CultureInfo;
|
private static CultureInfo _CultureInfo;
|
||||||
|
|
||||||
|
#pragma warning disable CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
public static MonIn GetInstance(string url = "http://moninhttp.{0}.infineon.com/input/text")
|
public static MonIn GetInstance(string url = "http://moninhttp.{0}.infineon.com/input/text")
|
||||||
|
#pragma warning restore CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
MonIn instance;
|
MonIn instance;
|
||||||
|
#pragma warning restore CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
if (_Instances.ContainsKey(url))
|
if (_Instances.ContainsKey(url))
|
||||||
{
|
{
|
||||||
instance = _Instances[url];
|
instance = _Instances[url];
|
||||||
@ -28,7 +38,9 @@ public class MonIn : IMonIn, IDisposable
|
|||||||
{
|
{
|
||||||
if (!_Instances.ContainsKey(url))
|
if (!_Instances.ContainsKey(url))
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
instance = new MonIn(url);
|
instance = new MonIn(url);
|
||||||
|
#pragma warning restore CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
_Instances.Add(url, instance);
|
_Instances.Add(url, instance);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -40,7 +52,9 @@ public class MonIn : IMonIn, IDisposable
|
|||||||
|
|
||||||
private MonIn(string url)
|
private MonIn(string url)
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0436 // The type 'ExtWebClient' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\ExtWebClient.cs' conflicts with the imported type 'ExtWebClient' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\ExtWebClient.cs'.
|
||||||
_WebClient = new ExtWebClient();
|
_WebClient = new ExtWebClient();
|
||||||
|
#pragma warning restore CS0436 // The type 'ExtWebClient' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\ExtWebClient.cs' conflicts with the imported type 'ExtWebClient' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\ExtWebClient.cs'.
|
||||||
_WebClient.Headers[HttpRequestHeader.ContentType] = "application/text";
|
_WebClient.Headers[HttpRequestHeader.ContentType] = "application/text";
|
||||||
_WebClient.Encoding = Encoding.UTF8;
|
_WebClient.Encoding = Encoding.UTF8;
|
||||||
_CultureInfo = new CultureInfo("en-US");
|
_CultureInfo = new CultureInfo("en-US");
|
||||||
@ -53,20 +67,26 @@ public class MonIn : IMonIn, IDisposable
|
|||||||
_WebClient.Headers[HttpRequestHeader.Authorization] = "Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(username + ":" + password));
|
_WebClient.Headers[HttpRequestHeader.Authorization] = "Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(username + ":" + password));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
public string SendStatus(string site, string resource, string stateName, State state) => SendStatus(site, new DateTime?(), resource, string.Empty, stateName, state, string.Empty);
|
public string SendStatus(string site, string resource, string stateName, State state) => SendStatus(site, new DateTime?(), resource, string.Empty, stateName, state, string.Empty);
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
|
|
||||||
public string SendStatus(
|
public string SendStatus(
|
||||||
string site,
|
string site,
|
||||||
DateTime timeStamp,
|
DateTime timeStamp,
|
||||||
string resource,
|
string resource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state) => SendStatus(site, new DateTime?(timeStamp), resource, string.Empty, stateName, state, string.Empty);
|
State state) => SendStatus(site, new DateTime?(timeStamp), resource, string.Empty, stateName, state, string.Empty);
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
|
|
||||||
public string SendStatus(
|
public string SendStatus(
|
||||||
string site,
|
string site,
|
||||||
string resource,
|
string resource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state,
|
State state,
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
string description) => SendStatus(site, new DateTime?(), resource, string.Empty, stateName, state, description);
|
string description) => SendStatus(site, new DateTime?(), resource, string.Empty, stateName, state, description);
|
||||||
|
|
||||||
public string SendStatus(
|
public string SendStatus(
|
||||||
@ -74,7 +94,9 @@ public class MonIn : IMonIn, IDisposable
|
|||||||
DateTime timeStamp,
|
DateTime timeStamp,
|
||||||
string resource,
|
string resource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state,
|
State state,
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
string description) => SendStatus(site, new DateTime?(timeStamp), resource, string.Empty, stateName, state, description);
|
string description) => SendStatus(site, new DateTime?(timeStamp), resource, string.Empty, stateName, state, description);
|
||||||
|
|
||||||
public string SendStatus(
|
public string SendStatus(
|
||||||
@ -82,7 +104,9 @@ public class MonIn : IMonIn, IDisposable
|
|||||||
string resource,
|
string resource,
|
||||||
string subresource,
|
string subresource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state) => SendStatus(site, new DateTime?(), resource, subresource, stateName, state, string.Empty);
|
State state) => SendStatus(site, new DateTime?(), resource, subresource, stateName, state, string.Empty);
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
|
|
||||||
public string SendStatus(
|
public string SendStatus(
|
||||||
string site,
|
string site,
|
||||||
@ -90,14 +114,18 @@ public class MonIn : IMonIn, IDisposable
|
|||||||
string resource,
|
string resource,
|
||||||
string subresource,
|
string subresource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state) => SendStatus(site, new DateTime?(timeStamp), resource, subresource, stateName, state, string.Empty);
|
State state) => SendStatus(site, new DateTime?(timeStamp), resource, subresource, stateName, state, string.Empty);
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
|
|
||||||
public string SendStatus(
|
public string SendStatus(
|
||||||
string site,
|
string site,
|
||||||
string resource,
|
string resource,
|
||||||
string subresource,
|
string subresource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state,
|
State state,
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
string description) => SendStatus(site, new DateTime?(), resource, subresource, stateName, state, description);
|
string description) => SendStatus(site, new DateTime?(), resource, subresource, stateName, state, description);
|
||||||
|
|
||||||
public string SendStatus(
|
public string SendStatus(
|
||||||
@ -106,7 +134,9 @@ public class MonIn : IMonIn, IDisposable
|
|||||||
string resource,
|
string resource,
|
||||||
string subresource,
|
string subresource,
|
||||||
string stateName,
|
string stateName,
|
||||||
|
#pragma warning disable CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
State state,
|
State state,
|
||||||
|
#pragma warning restore CS0436 // The type 'State' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs' conflicts with the imported type 'State' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\State.cs'.
|
||||||
string description)
|
string description)
|
||||||
{
|
{
|
||||||
string statusMessage = CreateStatusMessage(site, timeStamp, resource, subresource, stateName, state.ToString(), description);
|
string statusMessage = CreateStatusMessage(site, timeStamp, resource, subresource, stateName, state.ToString(), description);
|
||||||
@ -276,7 +306,10 @@ public class MonIn : IMonIn, IDisposable
|
|||||||
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
KeyValuePair<string, MonIn> keyValuePair = new();
|
KeyValuePair<string, MonIn> keyValuePair = new();
|
||||||
|
#pragma warning restore CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
|
#pragma warning disable CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
foreach (KeyValuePair<string, MonIn> instance in _Instances)
|
foreach (KeyValuePair<string, MonIn> instance in _Instances)
|
||||||
{
|
{
|
||||||
if (instance.Value == this)
|
if (instance.Value == this)
|
||||||
@ -285,6 +318,7 @@ public class MonIn : IMonIn, IDisposable
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#pragma warning restore CS0436 // The type 'MonIn' in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs' conflicts with the imported type 'MonIn' in 'Infineon.Monitoring.MonA, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'L:\Workspaces\33_CS29_79_72\MIT_EAF_Adaptations\Trunk\MET08THFTIRSTRATUS\06_SourceCode\MET08THFTIRSTRATUS\Adaptation\Infineon\Monitoring\MonA\MonIn.cs'.
|
||||||
_ = _Instances.Remove(keyValuePair.Key);
|
_ = _Instances.Remove(keyValuePair.Key);
|
||||||
_WebClient?.Dispose();
|
_WebClient?.Dispose();
|
||||||
}
|
}
|
||||||
|
@ -39,11 +39,11 @@
|
|||||||
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="6.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="6.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration.json" Version="6.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Configuration.json" Version="6.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="6.0.1" />
|
||||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.0" />
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.1" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="6.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="6.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="6.0.0" />
|
||||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Logging" Version="6.0.0" />
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
|
||||||
<PackageReference Include="Microsoft.Win32.SystemEvents" Version="6.0.1" />
|
<PackageReference Include="Microsoft.Win32.SystemEvents" Version="6.0.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -51,11 +51,11 @@
|
|||||||
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
|
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0" />
|
<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.1" />
|
||||||
<PackageReference Include="System.Data.OleDb" Version="6.0.0" />
|
<PackageReference Include="System.Data.OleDb" Version="6.0.0" />
|
||||||
<PackageReference Include="System.Data.SqlClient" Version="4.8.3" />
|
<PackageReference Include="System.Data.SqlClient" Version="4.8.4" />
|
||||||
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
|
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
|
||||||
<PackageReference Include="System.Text.Json" Version="6.0.3" />
|
<PackageReference Include="System.Text.Json" Version="6.0.6" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="coverlet.collector" Version="3.1.2">
|
<PackageReference Include="coverlet.collector" Version="3.1.2">
|
||||||
@ -65,7 +65,7 @@
|
|||||||
<PackageReference Include="FFMpegCore" Version="4.8.0" />
|
<PackageReference Include="FFMpegCore" Version="4.8.0" />
|
||||||
<PackageReference Include="Infineon.Yoda" Version="5.4.1" />
|
<PackageReference Include="Infineon.Yoda" Version="5.4.1" />
|
||||||
<PackageReference Include="Instances" Version="2.0.0" />
|
<PackageReference Include="Instances" Version="2.0.0" />
|
||||||
<PackageReference Include="RoboSharp" Version="1.2.7" />
|
<PackageReference Include="RoboSharp" Version="1.2.8" />
|
||||||
<PackageReference Include="Tesseract" Version="4.1.1" />
|
<PackageReference Include="Tesseract" Version="4.1.1" />
|
||||||
<PackageReference Include="Tibco.Rendezvous" Version="8.5.0" />
|
<PackageReference Include="Tibco.Rendezvous" Version="8.5.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
@ -12,6 +12,7 @@ public class Description : IDescription, Properties.IDescription
|
|||||||
public int Test { get; set; }
|
public int Test { get; set; }
|
||||||
public int Count { get; set; }
|
public int Count { get; set; }
|
||||||
public int Index { get; set; }
|
public int Index { get; set; }
|
||||||
|
public string RDS { get; set; }
|
||||||
//
|
//
|
||||||
public string EventName { get; set; }
|
public string EventName { get; set; }
|
||||||
public string NullData { get; set; }
|
public string NullData { get; set; }
|
||||||
@ -139,4 +140,6 @@ public class Description : IDescription, Properties.IDescription
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static string GetDateFormat() => "MM/dd/yyyy hh:mm:ss tt";
|
||||||
|
|
||||||
}
|
}
|
@ -260,24 +260,23 @@ public class FileRead : Properties.IFileRead
|
|||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static string GetTupleFile(Logistics logistics, Properties.IScopeInfo scopeInfo, string duplicateDirectory)
|
protected static string GetTupleFile<T>(Logistics logistics, List<T> descriptions, Properties.IScopeInfo scopeInfo, string duplicateDirectory) where T : Properties.IDescription
|
||||||
{
|
{
|
||||||
string result;
|
string result;
|
||||||
string rds;
|
string rds;
|
||||||
string dateValue;
|
string dateValue;
|
||||||
string datePlaceholder;
|
string rdsPlaceholder = "%RDS%";
|
||||||
string[] segments = logistics.MID.Split('-');
|
if (!descriptions.Any() || string.IsNullOrEmpty(descriptions[0].RDS))
|
||||||
if (segments.Length < 2)
|
rds = logistics.MID;
|
||||||
rds = "%RDS%";
|
|
||||||
else
|
else
|
||||||
rds = segments[1];
|
rds = descriptions[0].RDS;
|
||||||
segments = scopeInfo.FileName.Split(new string[] { "DateTime:" }, StringSplitOptions.RemoveEmptyEntries);
|
string[] segments = scopeInfo.FileName.Split(new string[] { "DateTime:" }, StringSplitOptions.RemoveEmptyEntries);
|
||||||
if (segments.Length == 0)
|
if (segments.Length == 0)
|
||||||
result = string.Concat(duplicateDirectory, @"\", scopeInfo.FileNameWithoutExtension.Replace("%RDS%", rds));
|
result = string.Concat(duplicateDirectory, @"\", scopeInfo.FileNameWithoutExtension.Replace(rdsPlaceholder, rds));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
datePlaceholder = "%DateTime%";
|
|
||||||
segments = segments[1].Split('%');
|
segments = segments[1].Split('%');
|
||||||
|
string datePlaceholder = "%DateTime%";
|
||||||
dateValue = logistics.DateTimeFromSequence.ToString(segments[0]);
|
dateValue = logistics.DateTimeFromSequence.ToString(segments[0]);
|
||||||
foreach (string segment in scopeInfo.FileName.Split('%'))
|
foreach (string segment in scopeInfo.FileName.Split('%'))
|
||||||
{
|
{
|
||||||
@ -285,18 +284,19 @@ public class FileRead : Properties.IFileRead
|
|||||||
continue;
|
continue;
|
||||||
datePlaceholder = string.Concat('%', segment, '%');
|
datePlaceholder = string.Concat('%', segment, '%');
|
||||||
}
|
}
|
||||||
result = string.Concat(duplicateDirectory, @"\", scopeInfo.FileName.Replace("%RDS%", rds).Replace(datePlaceholder, dateValue));
|
result = string.Concat(duplicateDirectory, @"\", scopeInfo.FileName.Replace(rdsPlaceholder, rds).Replace(datePlaceholder, dateValue));
|
||||||
}
|
}
|
||||||
if (result.Contains('%'))
|
if (result.Contains('%'))
|
||||||
throw new Exception("Placeholder exists!");
|
throw new Exception("Placeholder exists!");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void WaitForFileConsumption(string sourceDirectoryCloaking, Logistics logistics, DateTime dateTime, string successDirectory, string duplicateDirectory, string duplicateFile, List<(Properties.IScopeInfo, string)> tuples)
|
protected void WaitForFileConsumption<T>(string sourceDirectoryCloaking, Logistics logistics, DateTime dateTime, List<T> descriptions, string successDirectory, string duplicateDirectory, string duplicateFile, List<(Properties.IScopeInfo, string)> collection) where T : Properties.IDescription
|
||||||
{
|
{
|
||||||
bool check;
|
bool check;
|
||||||
long preWait;
|
long preWait;
|
||||||
string tupleFile;
|
string tupleFile;
|
||||||
|
string tupleFileName = string.Empty;
|
||||||
List<string> duplicateFiles = new();
|
List<string> duplicateFiles = new();
|
||||||
StringBuilder stringBuilder = new();
|
StringBuilder stringBuilder = new();
|
||||||
List<int> consumedFileIndices = new();
|
List<int> consumedFileIndices = new();
|
||||||
@ -306,20 +306,22 @@ public class FileRead : Properties.IFileRead
|
|||||||
preWait = dateTime.AddMilliseconds(1234).Ticks;
|
preWait = dateTime.AddMilliseconds(1234).Ticks;
|
||||||
else
|
else
|
||||||
preWait = dateTime.AddMilliseconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks;
|
preWait = dateTime.AddMilliseconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks;
|
||||||
if (!tuples.Any())
|
if (!collection.Any())
|
||||||
duplicateFiles.Add(duplicateFile);
|
duplicateFiles.Add(duplicateFile);
|
||||||
string fileName = Path.GetFileNameWithoutExtension(logistics.ReportFullPath);
|
string fileName = Path.GetFileNameWithoutExtension(logistics.ReportFullPath);
|
||||||
string successFile = string.Concat(successDirectory, @"\", Path.GetFileName(logistics.ReportFullPath));
|
string successFile = string.Concat(successDirectory, @"\", Path.GetFileName(logistics.ReportFullPath));
|
||||||
foreach ((Properties.IScopeInfo scopeInfo, string text) in tuples)
|
foreach ((Properties.IScopeInfo scopeInfo, string text) in collection)
|
||||||
{
|
{
|
||||||
if (scopeInfo.FileName.StartsWith(@"\"))
|
if (scopeInfo.FileName.StartsWith(@"\"))
|
||||||
tupleFile = scopeInfo.FileName;
|
tupleFile = scopeInfo.FileName;
|
||||||
else if (!scopeInfo.FileName.Contains('%'))
|
else if (!scopeInfo.FileName.Contains('%'))
|
||||||
tupleFile = string.Concat(duplicateDirectory, @"\", fileName, "_", scopeInfo.FileNameWithoutExtension, ".pdsfc");
|
tupleFile = string.Concat(duplicateDirectory, @"\", fileName, "_", scopeInfo.FileNameWithoutExtension, ".pdsfc");
|
||||||
else
|
else
|
||||||
tupleFile = GetTupleFile(logistics, scopeInfo, duplicateDirectory);
|
tupleFile = GetTupleFile(logistics, descriptions, scopeInfo, duplicateDirectory);
|
||||||
|
tupleFileName = Path.GetFileNameWithoutExtension(tupleFile).Split('.')[0];
|
||||||
duplicateFiles.Add(tupleFile);
|
duplicateFiles.Add(tupleFile);
|
||||||
File.WriteAllText(tupleFile, text);
|
if (_IsEAFHosted)
|
||||||
|
File.WriteAllText(tupleFile, text);
|
||||||
}
|
}
|
||||||
for (short i = 0; i < short.MaxValue; i++)
|
for (short i = 0; i < short.MaxValue; i++)
|
||||||
{
|
{
|
||||||
@ -340,7 +342,17 @@ public class FileRead : Properties.IFileRead
|
|||||||
for (int i = 0; i < duplicateFiles.Count; i++)
|
for (int i = 0; i < duplicateFiles.Count; i++)
|
||||||
{
|
{
|
||||||
if (!File.Exists(duplicateFiles[i]))
|
if (!File.Exists(duplicateFiles[i]))
|
||||||
consumedFileIndices.Add(i);
|
{
|
||||||
|
if (string.IsNullOrEmpty(tupleFileName))
|
||||||
|
consumedFileIndices.Add(i);
|
||||||
|
else if (duplicateFiles.All(l => Path.GetFileNameWithoutExtension(l).Split('.')[0] == tupleFileName))
|
||||||
|
{
|
||||||
|
for (int j = 0; j < duplicateFiles.Count; j++)
|
||||||
|
consumedFileIndices.Add(j);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
consumedFileIndices.Add(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (consumedFileIndices.Count == duplicateFiles.Count)
|
if (consumedFileIndices.Count == duplicateFiles.Count)
|
||||||
break;
|
break;
|
||||||
@ -599,10 +611,10 @@ public class FileRead : Properties.IFileRead
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void WaitForFileConsumption(DateTime dateTime, bool isDummyRun, string successDirectory, string duplicateDirectory, List<(Properties.IScopeInfo, string)> tuples, string duplicateFile)
|
protected void WaitForFileConsumption<T>(DateTime dateTime, List<T> descriptions, bool isDummyRun, string successDirectory, string duplicateDirectory, List<(Properties.IScopeInfo, string)> collection, string duplicateFile) where T : Properties.IDescription
|
||||||
{
|
{
|
||||||
if (!isDummyRun && _IsEAFHosted)
|
if (!isDummyRun && _IsEAFHosted)
|
||||||
WaitForFileConsumption(_FileConnectorConfiguration.SourceDirectoryCloaking, _Logistics, dateTime, successDirectory, duplicateDirectory, duplicateFile, tuples);
|
WaitForFileConsumption(_FileConnectorConfiguration.SourceDirectoryCloaking, _Logistics, dateTime, descriptions, successDirectory, duplicateDirectory, duplicateFile, collection);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
long breakAfter = DateTime.Now.AddSeconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks;
|
long breakAfter = DateTime.Now.AddSeconds(_FileConnectorConfiguration.FileHandleWaitTime.Value).Ticks;
|
||||||
|
@ -51,7 +51,7 @@ public class Logistics : ILogistics
|
|||||||
_Logistics2 = new List<Logistics2>();
|
_Logistics2 = new List<Logistics2>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Logistics(IFileRead fileRead, string reportFullPath, bool useSplitForMID, int? fileInfoLength = null)
|
public Logistics(IFileRead fileRead, long tickOffset, string reportFullPath, bool useSplitForMID, int? fileInfoLength = null)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(fileRead.CellInstanceName))
|
if (string.IsNullOrEmpty(fileRead.CellInstanceName))
|
||||||
throw new Exception();
|
throw new Exception();
|
||||||
@ -59,7 +59,7 @@ public class Logistics : ILogistics
|
|||||||
throw new Exception();
|
throw new Exception();
|
||||||
_NullData = fileRead.NullData;
|
_NullData = fileRead.NullData;
|
||||||
_FileInfo = new(reportFullPath);
|
_FileInfo = new(reportFullPath);
|
||||||
DateTime dateTime = _FileInfo.LastWriteTime;
|
DateTime dateTime = new(_FileInfo.LastWriteTime.Ticks + tickOffset);
|
||||||
if (fileInfoLength.HasValue && _FileInfo.Length < fileInfoLength.Value)
|
if (fileInfoLength.HasValue && _FileInfo.Length < fileInfoLength.Value)
|
||||||
dateTime = dateTime.AddTicks(-1);
|
dateTime = dateTime.AddTicks(-1);
|
||||||
_JobID = fileRead.CellInstanceName;
|
_JobID = fileRead.CellInstanceName;
|
||||||
|
@ -16,7 +16,7 @@ public class ScopeInfo : Properties.IScopeInfo
|
|||||||
public string QueryFilter { get; private set; }
|
public string QueryFilter { get; private set; }
|
||||||
public string FileNameWithoutExtension { get; private set; }
|
public string FileNameWithoutExtension { get; private set; }
|
||||||
|
|
||||||
public ScopeInfo(Test test, string fileName, string queryFilter = "", string title = "", string html = "")
|
public ScopeInfo(Test test, string fileName, string queryFilter = "", string title = "", string html = "", string extraExtension = "")
|
||||||
{
|
{
|
||||||
Enum = test;
|
Enum = test;
|
||||||
Test = test;
|
Test = test;
|
||||||
|
@ -44,8 +44,7 @@ public partial class WS
|
|||||||
_ = stringBuilder.AppendLine(exception.Message);
|
_ = stringBuilder.AppendLine(exception.Message);
|
||||||
exception = exception.InnerException;
|
exception = exception.InnerException;
|
||||||
}
|
}
|
||||||
if (results.Errors is null)
|
results.Errors ??= new List<string>();
|
||||||
results.Errors = new List<string>();
|
|
||||||
results.Errors.Add(stringBuilder.ToString());
|
results.Errors.Add(stringBuilder.ToString());
|
||||||
}
|
}
|
||||||
return new(resultsJson, results);
|
return new(resultsJson, results);
|
||||||
|
@ -91,8 +91,7 @@ public class ProcessDataStandardFormat
|
|||||||
string segment;
|
string segment;
|
||||||
List<string> body = new();
|
List<string> body = new();
|
||||||
StringBuilder logistics = new();
|
StringBuilder logistics = new();
|
||||||
if (lines is null)
|
lines ??= File.ReadAllLines(reportFullPath);
|
||||||
lines = File.ReadAllLines(reportFullPath);
|
|
||||||
string[] segments;
|
string[] segments;
|
||||||
if (lines.Length < 7)
|
if (lines.Length < 7)
|
||||||
segments = Array.Empty<string>();
|
segments = Array.Empty<string>();
|
||||||
@ -276,8 +275,7 @@ public class ProcessDataStandardFormat
|
|||||||
public static string GetLines(Logistics logistics, Properties.IScopeInfo scopeInfo, List<string> names, Dictionary<string, List<string>> keyValuePairs, string dateFormat, string timeFormat, List<string> pairedParameterNames, bool useDateTimeFromSequence = true, string format = "", List<string> ignoreParameterNames = null)
|
public static string GetLines(Logistics logistics, Properties.IScopeInfo scopeInfo, List<string> names, Dictionary<string, List<string>> keyValuePairs, string dateFormat, string timeFormat, List<string> pairedParameterNames, bool useDateTimeFromSequence = true, string format = "", List<string> ignoreParameterNames = null)
|
||||||
{
|
{
|
||||||
StringBuilder result = new();
|
StringBuilder result = new();
|
||||||
if (ignoreParameterNames is null)
|
ignoreParameterNames ??= new List<string>();
|
||||||
ignoreParameterNames = new List<string>();
|
|
||||||
if (useDateTimeFromSequence && !string.IsNullOrEmpty(format))
|
if (useDateTimeFromSequence && !string.IsNullOrEmpty(format))
|
||||||
throw new Exception();
|
throw new Exception();
|
||||||
else if (!useDateTimeFromSequence && string.IsNullOrEmpty(format))
|
else if (!useDateTimeFromSequence && string.IsNullOrEmpty(format))
|
||||||
@ -357,8 +355,7 @@ public class ProcessDataStandardFormat
|
|||||||
if (string.IsNullOrEmpty(lines[i]))
|
if (string.IsNullOrEmpty(lines[i]))
|
||||||
continue;
|
continue;
|
||||||
segments = lines[i].Split(inputSeparator);
|
segments = lines[i].Split(inputSeparator);
|
||||||
if (currentGroup is null)
|
currentGroup ??= segments.Length;
|
||||||
currentGroup = segments.Length;
|
|
||||||
if (segments.Length != currentGroup)
|
if (segments.Length != currentGroup)
|
||||||
{
|
{
|
||||||
currentGroup = segments.Length;
|
currentGroup = segments.Length;
|
||||||
|
@ -6,5 +6,6 @@ public interface IDescription
|
|||||||
int Test { get; }
|
int Test { get; }
|
||||||
int Count { get; }
|
int Count { get; }
|
||||||
int Index { get; }
|
int Index { get; }
|
||||||
|
string RDS { get; }
|
||||||
|
|
||||||
}
|
}
|
@ -31,8 +31,7 @@ public class BIORAD4 : EAFLoggingUnitTesting
|
|||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting is null)
|
EAFLoggingUnitTesting ??= new BIORAD4(testContext);
|
||||||
EAFLoggingUnitTesting = new BIORAD4(testContext);
|
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
@ -42,10 +41,8 @@ public class BIORAD4 : EAFLoggingUnitTesting
|
|||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting.Logger is not null)
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
if (EAFLoggingUnitTesting is not null)
|
|
||||||
EAFLoggingUnitTesting.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
|
@ -31,8 +31,7 @@ public class BIORAD5 : EAFLoggingUnitTesting
|
|||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting is null)
|
EAFLoggingUnitTesting ??= new BIORAD5(testContext);
|
||||||
EAFLoggingUnitTesting = new BIORAD5(testContext);
|
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
@ -42,10 +41,8 @@ public class BIORAD5 : EAFLoggingUnitTesting
|
|||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting.Logger is not null)
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
if (EAFLoggingUnitTesting is not null)
|
|
||||||
EAFLoggingUnitTesting.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
|
@ -31,8 +31,7 @@ public class MET08THFTIRSTRATUS : EAFLoggingUnitTesting
|
|||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting is null)
|
EAFLoggingUnitTesting ??= new MET08THFTIRSTRATUS(testContext);
|
||||||
EAFLoggingUnitTesting = new MET08THFTIRSTRATUS(testContext);
|
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
@ -42,10 +41,8 @@ public class MET08THFTIRSTRATUS : EAFLoggingUnitTesting
|
|||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting.Logger is not null)
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
if (EAFLoggingUnitTesting is not null)
|
|
||||||
EAFLoggingUnitTesting.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
|
@ -31,8 +31,7 @@ public class BIORAD4 : EAFLoggingUnitTesting
|
|||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting is null)
|
EAFLoggingUnitTesting ??= new BIORAD4(testContext);
|
||||||
EAFLoggingUnitTesting = new BIORAD4(testContext);
|
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
@ -42,10 +41,8 @@ public class BIORAD4 : EAFLoggingUnitTesting
|
|||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting.Logger is not null)
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
if (EAFLoggingUnitTesting is not null)
|
|
||||||
EAFLoggingUnitTesting.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
|
@ -31,8 +31,7 @@ public class BIORAD5 : EAFLoggingUnitTesting
|
|||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting is null)
|
EAFLoggingUnitTesting ??= new BIORAD5(testContext);
|
||||||
EAFLoggingUnitTesting = new BIORAD5(testContext);
|
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
@ -42,10 +41,8 @@ public class BIORAD5 : EAFLoggingUnitTesting
|
|||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting.Logger is not null)
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
if (EAFLoggingUnitTesting is not null)
|
|
||||||
EAFLoggingUnitTesting.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
|
@ -31,8 +31,7 @@ public class MET08THFTIRSTRATUS : EAFLoggingUnitTesting
|
|||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting is null)
|
EAFLoggingUnitTesting ??= new MET08THFTIRSTRATUS(testContext);
|
||||||
EAFLoggingUnitTesting = new MET08THFTIRSTRATUS(testContext);
|
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
@ -42,10 +41,8 @@ public class MET08THFTIRSTRATUS : EAFLoggingUnitTesting
|
|||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting.Logger is not null)
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
if (EAFLoggingUnitTesting is not null)
|
|
||||||
EAFLoggingUnitTesting.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
|
@ -31,8 +31,7 @@ public class BIORAD4 : EAFLoggingUnitTesting
|
|||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting is null)
|
EAFLoggingUnitTesting ??= new BIORAD4(testContext);
|
||||||
EAFLoggingUnitTesting = new BIORAD4(testContext);
|
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
@ -42,10 +41,8 @@ public class BIORAD4 : EAFLoggingUnitTesting
|
|||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting.Logger is not null)
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
if (EAFLoggingUnitTesting is not null)
|
|
||||||
EAFLoggingUnitTesting.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
|
@ -31,8 +31,7 @@ public class BIORAD5 : EAFLoggingUnitTesting
|
|||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting is null)
|
EAFLoggingUnitTesting ??= new BIORAD5(testContext);
|
||||||
EAFLoggingUnitTesting = new BIORAD5(testContext);
|
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
@ -42,10 +41,8 @@ public class BIORAD5 : EAFLoggingUnitTesting
|
|||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting.Logger is not null)
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
if (EAFLoggingUnitTesting is not null)
|
|
||||||
EAFLoggingUnitTesting.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
|
@ -31,8 +31,7 @@ public class MET08THFTIRSTRATUS : EAFLoggingUnitTesting
|
|||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting is null)
|
EAFLoggingUnitTesting ??= new MET08THFTIRSTRATUS(testContext);
|
||||||
EAFLoggingUnitTesting = new MET08THFTIRSTRATUS(testContext);
|
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
@ -42,10 +41,8 @@ public class MET08THFTIRSTRATUS : EAFLoggingUnitTesting
|
|||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting.Logger is not null)
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
if (EAFLoggingUnitTesting is not null)
|
|
||||||
EAFLoggingUnitTesting.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
|
@ -31,8 +31,7 @@ public class BIORAD4 : EAFLoggingUnitTesting
|
|||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting is null)
|
EAFLoggingUnitTesting ??= new BIORAD4(testContext);
|
||||||
EAFLoggingUnitTesting = new BIORAD4(testContext);
|
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
@ -42,10 +41,8 @@ public class BIORAD4 : EAFLoggingUnitTesting
|
|||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting.Logger is not null)
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
if (EAFLoggingUnitTesting is not null)
|
|
||||||
EAFLoggingUnitTesting.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
|
@ -31,8 +31,7 @@ public class BIORAD5 : EAFLoggingUnitTesting
|
|||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting is null)
|
EAFLoggingUnitTesting ??= new BIORAD5(testContext);
|
||||||
EAFLoggingUnitTesting = new BIORAD5(testContext);
|
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
@ -42,10 +41,8 @@ public class BIORAD5 : EAFLoggingUnitTesting
|
|||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting.Logger is not null)
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
if (EAFLoggingUnitTesting is not null)
|
|
||||||
EAFLoggingUnitTesting.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
|
@ -31,8 +31,7 @@ public class MET08THFTIRSTRATUS : EAFLoggingUnitTesting
|
|||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext)
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting is null)
|
EAFLoggingUnitTesting ??= new MET08THFTIRSTRATUS(testContext);
|
||||||
EAFLoggingUnitTesting = new MET08THFTIRSTRATUS(testContext);
|
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
@ -42,10 +41,8 @@ public class MET08THFTIRSTRATUS : EAFLoggingUnitTesting
|
|||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (EAFLoggingUnitTesting.Logger is not null)
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
EAFLoggingUnitTesting.Logger.LogInformation("Cleanup");
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
if (EAFLoggingUnitTesting is not null)
|
|
||||||
EAFLoggingUnitTesting.Dispose();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
|
@ -0,0 +1,89 @@
|
|||||||
|
using Adaptation._Tests.Shared;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.IO;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_47_1;
|
||||||
|
|
||||||
|
[TestClass]
|
||||||
|
public class BIORAD4 : EAFLoggingUnitTesting
|
||||||
|
{
|
||||||
|
|
||||||
|
#pragma warning disable CA2254
|
||||||
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
|
internal static string DummyRoot { get; private set; }
|
||||||
|
internal static BIORAD4 EAFLoggingUnitTesting { get; private set; }
|
||||||
|
|
||||||
|
public BIORAD4() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
||||||
|
{
|
||||||
|
if (EAFLoggingUnitTesting is null)
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
public BIORAD4(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
[ClassInitialize]
|
||||||
|
public static void ClassInitialize(TestContext testContext)
|
||||||
|
{
|
||||||
|
EAFLoggingUnitTesting ??= new BIORAD4(testContext);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
|
File.WriteAllText(fileNameAndText[2], fileNameAndText[3]);
|
||||||
|
}
|
||||||
|
|
||||||
|
[ClassCleanup()]
|
||||||
|
public static void ClassCleanup()
|
||||||
|
{
|
||||||
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__txt()
|
||||||
|
{
|
||||||
|
string check = "*DataBioRad.txt";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__Stratus()
|
||||||
|
{
|
||||||
|
string check = "CassetteDataBioRad_*.txt";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__QS408M()
|
||||||
|
{
|
||||||
|
string check = "DetailDataBioRad_*.txt";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
string[] fileNameAndJson = EAFLoggingUnitTesting.AdaptationTesting.GetConfiguration(methodBase);
|
||||||
|
Assert.IsTrue(fileNameAndJson[1].Contains(check));
|
||||||
|
File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,89 @@
|
|||||||
|
using Adaptation._Tests.Shared;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.IO;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_47_1;
|
||||||
|
|
||||||
|
[TestClass]
|
||||||
|
public class BIORAD5 : EAFLoggingUnitTesting
|
||||||
|
{
|
||||||
|
|
||||||
|
#pragma warning disable CA2254
|
||||||
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
|
internal static string DummyRoot { get; private set; }
|
||||||
|
internal static BIORAD5 EAFLoggingUnitTesting { get; private set; }
|
||||||
|
|
||||||
|
public BIORAD5() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
||||||
|
{
|
||||||
|
if (EAFLoggingUnitTesting is null)
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
public BIORAD5(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
[ClassInitialize]
|
||||||
|
public static void ClassInitialize(TestContext testContext)
|
||||||
|
{
|
||||||
|
EAFLoggingUnitTesting ??= new BIORAD5(testContext);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
|
File.WriteAllText(fileNameAndText[2], fileNameAndText[3]);
|
||||||
|
}
|
||||||
|
|
||||||
|
[ClassCleanup()]
|
||||||
|
public static void ClassCleanup()
|
||||||
|
{
|
||||||
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD5__txt()
|
||||||
|
{
|
||||||
|
string check = "*DataBioRad.txt";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD5__Stratus()
|
||||||
|
{
|
||||||
|
string check = "CassetteDataBioRad_*.txt";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD5__QS408M()
|
||||||
|
{
|
||||||
|
string check = "DetailDataBioRad_*.txt";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
string[] fileNameAndJson = EAFLoggingUnitTesting.AdaptationTesting.GetConfiguration(methodBase);
|
||||||
|
Assert.IsTrue(fileNameAndJson[1].Contains(check));
|
||||||
|
File.WriteAllText(fileNameAndJson[0], fileNameAndJson[1]);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,178 @@
|
|||||||
|
using Adaptation._Tests.Shared;
|
||||||
|
using Microsoft.Extensions.Logging;
|
||||||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.IO;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Adaptation._Tests.CreateSelfDescription.Staging.v2_47_1;
|
||||||
|
|
||||||
|
[TestClass]
|
||||||
|
public class MET08THFTIRSTRATUS : EAFLoggingUnitTesting
|
||||||
|
{
|
||||||
|
|
||||||
|
#pragma warning disable CA2254
|
||||||
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
|
internal static string DummyRoot { get; private set; }
|
||||||
|
internal static MET08THFTIRSTRATUS EAFLoggingUnitTesting { get; private set; }
|
||||||
|
|
||||||
|
public MET08THFTIRSTRATUS() : base(DummyRoot, testContext: null, declaringType: null, skipEquipmentDictionary: false)
|
||||||
|
{
|
||||||
|
if (EAFLoggingUnitTesting is null)
|
||||||
|
throw new Exception();
|
||||||
|
}
|
||||||
|
|
||||||
|
public MET08THFTIRSTRATUS(TestContext testContext) : base(DummyRoot, testContext, new StackFrame().GetMethod().DeclaringType, skipEquipmentDictionary: false)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
[ClassInitialize]
|
||||||
|
public static void ClassInitialize(TestContext testContext)
|
||||||
|
{
|
||||||
|
EAFLoggingUnitTesting ??= new MET08THFTIRSTRATUS(testContext);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(testContext.TestName, " - ClassInitialize"));
|
||||||
|
string[] fileNameAndText = EAFLoggingUnitTesting.AdaptationTesting.GetCSharpText(testContext.TestName);
|
||||||
|
File.WriteAllText(fileNameAndText[0], fileNameAndText[1]);
|
||||||
|
File.WriteAllText(fileNameAndText[2], fileNameAndText[3]);
|
||||||
|
}
|
||||||
|
|
||||||
|
[ClassCleanup()]
|
||||||
|
public static void ClassCleanup()
|
||||||
|
{
|
||||||
|
EAFLoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
|
EAFLoggingUnitTesting?.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__MoveMatchingFiles()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsightMetrologyViewer()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__IQSSi()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsight()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__APC()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__SPaCe()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__Processed()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__Archive()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__Dummy()
|
||||||
|
{
|
||||||
|
string check = "637400762024374000.zip";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Getting configuration"));
|
||||||
|
_ = AdaptationTesting.GetWriteConfigurationGetFileRead(methodBase, check, EAFLoggingUnitTesting.AdaptationTesting);
|
||||||
|
EAFLoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,4 +1,7 @@
|
|||||||
|
using Adaptation._Tests.Shared;
|
||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
namespace Adaptation._Tests.Extract.Staging.v2_47_0;
|
namespace Adaptation._Tests.Extract.Staging.v2_47_0;
|
||||||
|
|
||||||
@ -42,6 +45,34 @@ public class MET08THFTIRSTRATUS
|
|||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Staging__v2_47_0__MET08THFTIRSTRATUS__OpenInsight() => _MET08THFTIRSTRATUS.Staging__v2_47_0__MET08THFTIRSTRATUS__OpenInsight();
|
public void Staging__v2_47_0__MET08THFTIRSTRATUS__OpenInsight() => _MET08THFTIRSTRATUS.Staging__v2_47_0__MET08THFTIRSTRATUS__OpenInsight();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_0__MET08THFTIRSTRATUS__OpenInsight638014829236768047__Normal()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
_MET08THFTIRSTRATUS.Staging__v2_47_0__MET08THFTIRSTRATUS__OpenInsight();
|
||||||
|
MethodBase method = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check);
|
||||||
|
_ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract();
|
||||||
|
AdaptationTesting.UpdatePassDirectory(variables[2]);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_0__MET08THFTIRSTRATUS__OpenInsight638015284160909324__WO()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
_MET08THFTIRSTRATUS.Staging__v2_47_0__MET08THFTIRSTRATUS__OpenInsight();
|
||||||
|
MethodBase method = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check);
|
||||||
|
_ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract();
|
||||||
|
AdaptationTesting.UpdatePassDirectory(variables[2]);
|
||||||
|
}
|
||||||
|
|
||||||
#if true
|
#if true
|
||||||
[Ignore]
|
[Ignore]
|
||||||
#endif
|
#endif
|
||||||
|
172
Adaptation/_Tests/Extract/Staging/v2.47.1/BIORAD4.cs
Normal file
172
Adaptation/_Tests/Extract/Staging/v2.47.1/BIORAD4.cs
Normal file
@ -0,0 +1,172 @@
|
|||||||
|
using Adaptation.Shared;
|
||||||
|
using Adaptation.Shared.Methods;
|
||||||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Adaptation._Tests.Extract.Staging.v2_47_1;
|
||||||
|
|
||||||
|
[TestClass]
|
||||||
|
public class BIORAD4
|
||||||
|
{
|
||||||
|
|
||||||
|
#pragma warning disable CA2254
|
||||||
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
|
private static CreateSelfDescription.Staging.v2_47_1.BIORAD4 _BIORAD4;
|
||||||
|
|
||||||
|
[ClassInitialize]
|
||||||
|
public static void ClassInitialize(TestContext testContext)
|
||||||
|
{
|
||||||
|
CreateSelfDescription.Staging.v2_47_1.BIORAD4.ClassInitialize(testContext);
|
||||||
|
_BIORAD4 = CreateSelfDescription.Staging.v2_47_1.BIORAD4.EAFLoggingUnitTesting;
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__txt() => _BIORAD4.Staging__v2_47_1__BIORAD4__txt();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__txt637730081979221342__Normal()
|
||||||
|
{
|
||||||
|
string check = "*DataBioRad.txt";
|
||||||
|
_BIORAD4.Staging__v2_47_1__BIORAD4__txt();
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
|
||||||
|
|
||||||
|
_ = Shared.AdaptationTesting.GetLogisticsColumnsAndBody(variables[2], variables[4]);
|
||||||
|
IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
|
||||||
|
_ = fileRead.ReExtract();
|
||||||
|
Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__txt637818036815840307__ProcessFailed()
|
||||||
|
{
|
||||||
|
string check = "*DataBioRad.txt";
|
||||||
|
_BIORAD4.Staging__v2_47_1__BIORAD4__txt();
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
|
||||||
|
IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
_ = fileRead.ReExtract();
|
||||||
|
Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__txt637746296480404920__Failure()
|
||||||
|
{
|
||||||
|
string check = "*DataBioRad.txt";
|
||||||
|
_BIORAD4.Staging__v2_47_1__BIORAD4__txt();
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
|
||||||
|
IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
_ = fileRead.ReExtract();
|
||||||
|
Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__Stratus() => _BIORAD4.Staging__v2_47_1__BIORAD4__Stratus();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__Stratus637730081979221342__RDS()
|
||||||
|
{
|
||||||
|
string check = "CassetteDataBioRad_*.txt";
|
||||||
|
_BIORAD4.Staging__v2_47_1__BIORAD4__Stratus();
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
|
||||||
|
IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
Logistics logistics = new(fileRead);
|
||||||
|
_ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__Stratus637730081979221342__1TRDS()
|
||||||
|
{
|
||||||
|
string check = "CassetteDataBioRad_*.txt";
|
||||||
|
_BIORAD4.Staging__v2_47_1__BIORAD4__Stratus();
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
|
||||||
|
IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
Logistics logistics = new(fileRead);
|
||||||
|
_ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__Stratus637733400573863329__ReactorAndRDS()
|
||||||
|
{
|
||||||
|
DateTime dateTime;
|
||||||
|
string check = "CassetteDataBioRad_*.txt";
|
||||||
|
_BIORAD4.Staging__v2_47_1__BIORAD4__Stratus();
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
|
||||||
|
IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
Logistics logistics = new(fileRead);
|
||||||
|
_ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
|
||||||
|
dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty);
|
||||||
|
Assert.IsTrue(dateTime == logistics.DateTimeFromSequence);
|
||||||
|
dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21 08:39");
|
||||||
|
Assert.IsTrue(dateTime == logistics.DateTimeFromSequence);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__Stratus637818036815840307__ProcessFailed()
|
||||||
|
{
|
||||||
|
string check = "CassetteDataBioRad_*.txt";
|
||||||
|
_BIORAD4.Staging__v2_47_1__BIORAD4__Stratus();
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
|
||||||
|
IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
_ = fileRead.ReExtract();
|
||||||
|
Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__QS408M() => _BIORAD4.Staging__v2_47_1__BIORAD4__QS408M();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD4__Stratus638010209430211312__MissingRecipe()
|
||||||
|
{
|
||||||
|
string check = "CassetteDataBioRad_*.txt";
|
||||||
|
_BIORAD4.Staging__v2_47_1__BIORAD4__Stratus();
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _BIORAD4.AdaptationTesting.GetVariables(methodBase, check);
|
||||||
|
IFileRead fileRead = _BIORAD4.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
_ = fileRead.ReExtract();
|
||||||
|
Shared.AdaptationTesting.UpdatePassDirectory(variables[2]);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
104
Adaptation/_Tests/Extract/Staging/v2.47.1/BIORAD5.cs
Normal file
104
Adaptation/_Tests/Extract/Staging/v2.47.1/BIORAD5.cs
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
using Adaptation.Shared;
|
||||||
|
using Adaptation.Shared.Methods;
|
||||||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Adaptation._Tests.Extract.Staging.v2_47_1;
|
||||||
|
|
||||||
|
[TestClass]
|
||||||
|
public class BIORAD5
|
||||||
|
{
|
||||||
|
|
||||||
|
#pragma warning disable CA2254
|
||||||
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
|
private static CreateSelfDescription.Staging.v2_47_1.BIORAD5 _BIORAD5;
|
||||||
|
|
||||||
|
[ClassInitialize]
|
||||||
|
public static void ClassInitialize(TestContext testContext)
|
||||||
|
{
|
||||||
|
CreateSelfDescription.Staging.v2_47_1.BIORAD5.ClassInitialize(testContext);
|
||||||
|
_BIORAD5 = CreateSelfDescription.Staging.v2_47_1.BIORAD5.EAFLoggingUnitTesting;
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD5__txt() => _BIORAD5.Staging__v2_47_1__BIORAD5__txt();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD5__txt637805172599370243__Why()
|
||||||
|
{
|
||||||
|
DateTime dateTime;
|
||||||
|
string check = "*DataBioRad.txt";
|
||||||
|
_BIORAD5.Staging__v2_47_1__BIORAD5__txt();
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check);
|
||||||
|
IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
Logistics logistics = new(fileRead);
|
||||||
|
_ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
|
||||||
|
dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty);
|
||||||
|
Assert.IsTrue(dateTime == logistics.DateTimeFromSequence);
|
||||||
|
dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21 08:39");
|
||||||
|
Assert.IsTrue(dateTime == logistics.DateTimeFromSequence);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD5__Stratus() => _BIORAD5.Staging__v2_47_1__BIORAD5__Stratus();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD5__Stratus637738592809956919__ReactorAndRDS()
|
||||||
|
{
|
||||||
|
DateTime dateTime;
|
||||||
|
string check = "CassetteDataBioRad_*.txt";
|
||||||
|
_BIORAD5.Staging__v2_47_1__BIORAD5__Stratus();
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check);
|
||||||
|
IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
Logistics logistics = new(fileRead);
|
||||||
|
_ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
|
||||||
|
dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty);
|
||||||
|
Assert.IsTrue(dateTime == logistics.DateTimeFromSequence);
|
||||||
|
dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21 08:39");
|
||||||
|
Assert.IsTrue(dateTime == logistics.DateTimeFromSequence);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD5__Stratus637805172599370243__Why()
|
||||||
|
{
|
||||||
|
DateTime dateTime;
|
||||||
|
string check = "CassetteDataBioRad_*.txt";
|
||||||
|
_BIORAD5.Staging__v2_47_1__BIORAD5__Stratus();
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _BIORAD5.AdaptationTesting.GetVariables(methodBase, check);
|
||||||
|
IFileRead fileRead = _BIORAD5.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
Logistics logistics = new(fileRead);
|
||||||
|
_ = Shared.AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
|
||||||
|
dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, string.Empty);
|
||||||
|
Assert.IsTrue(dateTime == logistics.DateTimeFromSequence);
|
||||||
|
dateTime = FileHandlers.Stratus.ProcessData.GetDateTime(logistics, "11/24/21 08:39");
|
||||||
|
Assert.IsTrue(dateTime == logistics.DateTimeFromSequence);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__BIORAD5__QS408M() => _BIORAD5.Staging__v2_47_1__BIORAD5__QS408M();
|
||||||
|
|
||||||
|
}
|
127
Adaptation/_Tests/Extract/Staging/v2.47.1/MET08THFTIRSTRATUS.cs
Normal file
127
Adaptation/_Tests/Extract/Staging/v2.47.1/MET08THFTIRSTRATUS.cs
Normal file
@ -0,0 +1,127 @@
|
|||||||
|
using Adaptation._Tests.Shared;
|
||||||
|
using Adaptation.Shared;
|
||||||
|
using Adaptation.Shared.Methods;
|
||||||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Reflection;
|
||||||
|
|
||||||
|
namespace Adaptation._Tests.Extract.Staging.v2_47_1;
|
||||||
|
|
||||||
|
[TestClass]
|
||||||
|
public class MET08THFTIRSTRATUS
|
||||||
|
{
|
||||||
|
|
||||||
|
#pragma warning disable CA2254
|
||||||
|
#pragma warning disable IDE0060
|
||||||
|
|
||||||
|
private static CreateSelfDescription.Staging.v2_47_1.MET08THFTIRSTRATUS _MET08THFTIRSTRATUS;
|
||||||
|
|
||||||
|
[ClassInitialize]
|
||||||
|
public static void ClassInitialize(TestContext testContext)
|
||||||
|
{
|
||||||
|
CreateSelfDescription.Staging.v2_47_1.MET08THFTIRSTRATUS.ClassInitialize(testContext);
|
||||||
|
_MET08THFTIRSTRATUS = CreateSelfDescription.Staging.v2_47_1.MET08THFTIRSTRATUS.EAFLoggingUnitTesting;
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__MoveMatchingFiles() => _MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__MoveMatchingFiles();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsightMetrologyViewer() => _MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsightMetrologyViewer();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__IQSSi() => _MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__IQSSi();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsight() => _MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsight();
|
||||||
|
|
||||||
|
[Ignore]
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsight638014829236768047__Normal()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
_MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsight();
|
||||||
|
MethodBase method = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check);
|
||||||
|
_ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract();
|
||||||
|
AdaptationTesting.UpdatePassDirectory(variables[2]);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsight638015284160909324__WO()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
_MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsight();
|
||||||
|
MethodBase method = new StackFrame().GetMethod();
|
||||||
|
string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(method, check);
|
||||||
|
_ = _MET08THFTIRSTRATUS.AdaptationTesting.Get(method, variables[2], variables[3], false).ReExtract();
|
||||||
|
AdaptationTesting.UpdatePassDirectory(variables[2]);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsight638054540026319596__IqsSql()
|
||||||
|
{
|
||||||
|
string check = "*.pdsf";
|
||||||
|
MethodBase methodBase = new StackFrame().GetMethod();
|
||||||
|
_MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsight();
|
||||||
|
string[] variables = _MET08THFTIRSTRATUS.AdaptationTesting.GetVariables(methodBase, check, validatePDSF: false);
|
||||||
|
IFileRead fileRead = _MET08THFTIRSTRATUS.AdaptationTesting.Get(methodBase, sourceFileLocation: variables[2], sourceFileFilter: variables[3], useCyclicalForDescription: false);
|
||||||
|
Logistics logistics = new(fileRead);
|
||||||
|
_ = AdaptationTesting.ReExtractCompareUpdatePassDirectory(variables, fileRead, logistics);
|
||||||
|
}
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments() => _MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsightMetrologyViewerAttachments();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__APC() => _MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__APC();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__SPaCe() => _MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__SPaCe();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__Processed() => _MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__Processed();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__Archive() => _MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__Archive();
|
||||||
|
|
||||||
|
#if true
|
||||||
|
[Ignore]
|
||||||
|
#endif
|
||||||
|
[TestMethod]
|
||||||
|
public void Staging__v2_47_1__MET08THFTIRSTRATUS__Dummy() => _MET08THFTIRSTRATUS.Staging__v2_47_1__MET08THFTIRSTRATUS__Dummy();
|
||||||
|
|
||||||
|
}
|
@ -621,14 +621,10 @@ public class AdaptationTesting : ISMTP
|
|||||||
result = JsonSerializer.Deserialize<FileConnectorConfiguration>(json, jsonSerializerOptions);
|
result = JsonSerializer.Deserialize<FileConnectorConfiguration>(json, jsonSerializerOptions);
|
||||||
if (string.IsNullOrEmpty(result.SourceFileFilter))
|
if (string.IsNullOrEmpty(result.SourceFileFilter))
|
||||||
result.SourceFileFilter = string.Empty;
|
result.SourceFileFilter = string.Empty;
|
||||||
if (result.ErrorTargetFileLocation is null)
|
result.ErrorTargetFileLocation ??= string.Empty;
|
||||||
result.ErrorTargetFileLocation = string.Empty;
|
result.SourceFileLocation ??= string.Empty;
|
||||||
if (result.SourceFileLocation is null)
|
result.TargetFileLocation ??= string.Empty;
|
||||||
result.SourceFileLocation = string.Empty;
|
result.FolderAgeCheckIndividualSubFolders ??= false;
|
||||||
if (result.TargetFileLocation is null)
|
|
||||||
result.TargetFileLocation = string.Empty;
|
|
||||||
if (result.FolderAgeCheckIndividualSubFolders is null)
|
|
||||||
result.FolderAgeCheckIndividualSubFolders = false;
|
|
||||||
result.ConnectionSettings = new List<ConnectionSetting>();
|
result.ConnectionSettings = new List<ConnectionSetting>();
|
||||||
result.SourceFileFilters = result.SourceFileFilter.Split('|').ToList();
|
result.SourceFileFilters = result.SourceFileFilter.Split('|').ToList();
|
||||||
if (componentsCellComponentCellComponent.Equipment?.ConnectionSettings is not null)
|
if (componentsCellComponentCellComponent.Equipment?.ConnectionSettings is not null)
|
||||||
|
@ -55,8 +55,7 @@ public class UnitTesting
|
|||||||
_IsEnvironment = new IsEnvironment(testCategory);
|
_IsEnvironment = new IsEnvironment(testCategory);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (_IsEnvironment is null)
|
_IsEnvironment ??= new IsEnvironment(processesCount: null, nullASPNetCoreEnvironmentIsDevelopment: Debugger.IsAttached, nullASPNetCoreEnvironmentIsProduction: !Debugger.IsAttached);
|
||||||
_IsEnvironment = new IsEnvironment(processesCount: null, nullASPNetCoreEnvironmentIsDevelopment: Debugger.IsAttached, nullASPNetCoreEnvironmentIsProduction: !Debugger.IsAttached);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,19 +27,20 @@ public class Stratus : LoggingUnitTesting, IDisposable
|
|||||||
}
|
}
|
||||||
|
|
||||||
[ClassInitialize]
|
[ClassInitialize]
|
||||||
public static void ClassInitialize(TestContext testContext)
|
public static void ClassInitialize(TestContext testContext) => LoggingUnitTesting ??= new Stratus(testContext);
|
||||||
{
|
|
||||||
if (LoggingUnitTesting is null)
|
|
||||||
LoggingUnitTesting = new Stratus(testContext);
|
|
||||||
}
|
|
||||||
|
|
||||||
[ClassCleanup()]
|
[ClassCleanup()]
|
||||||
public static void ClassCleanup()
|
public static void ClassCleanup()
|
||||||
{
|
{
|
||||||
if (LoggingUnitTesting.Logger is not null)
|
LoggingUnitTesting.Logger?.LogInformation("Cleanup");
|
||||||
LoggingUnitTesting.Logger.LogInformation("Cleanup");
|
LoggingUnitTesting?.Dispose();
|
||||||
if (LoggingUnitTesting is not null)
|
}
|
||||||
LoggingUnitTesting.Dispose();
|
|
||||||
|
[TestMethod]
|
||||||
|
public void TestDateTime()
|
||||||
|
{
|
||||||
|
DateTime dateTime = DateTime.Now;
|
||||||
|
Assert.IsTrue(dateTime.ToString("M/d/yyyy h:mm:ss tt") == dateTime.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
@ -146,6 +147,13 @@ public class Stratus : LoggingUnitTesting, IDisposable
|
|||||||
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
|
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
|
||||||
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
|
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
|
||||||
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
|
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
|
||||||
|
descriptor = FileHandlers.Stratus.ProcessData.GetDescriptor("171308.1.51");
|
||||||
|
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Layer));
|
||||||
|
Assert.IsTrue(string.IsNullOrEmpty(descriptor.PSN));
|
||||||
|
Assert.IsTrue(descriptor.RDS is "171308.1.51");
|
||||||
|
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Reactor));
|
||||||
|
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Zone));
|
||||||
|
Assert.IsTrue(string.IsNullOrEmpty(descriptor.Employee));
|
||||||
LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
LoggingUnitTesting.Logger.LogInformation(string.Concat(methodBase.Name, " - Exit"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
"Password": "tLIPgqM6R9hVQOteRnTHwPqIg3Zxv8CohTjFkjkFz8k="
|
"Password": "tLIPgqM6R9hVQOteRnTHwPqIg3Zxv8CohTjFkjkFz8k="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Use": true,
|
"Use": false,
|
||||||
"Letter": "k",
|
"Letter": "k",
|
||||||
"Share": "\\\\messdv002.na.infineon.com\\GaN_NEC\\Characterization",
|
"Share": "\\\\messdv002.na.infineon.com\\GaN_NEC\\Characterization",
|
||||||
"User": "INFINEON\\MESGaNEAF",
|
"User": "INFINEON\\MESGaNEAF",
|
||||||
@ -80,35 +80,35 @@
|
|||||||
"Password": "CUGygiPwahy4U3j+6KqqoMZ08STyVDR1rKm6MwPpt00="
|
"Password": "CUGygiPwahy4U3j+6KqqoMZ08STyVDR1rKm6MwPpt00="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Use": true,
|
"Use": false,
|
||||||
"Letter": "n",
|
"Letter": "n",
|
||||||
"Share": "\\\\10.95.154.22\\C",
|
"Share": "\\\\10.95.154.22\\C",
|
||||||
"User": "10.95.154.22\\Aixtron",
|
"User": "10.95.154.22\\Aixtron",
|
||||||
"Password": "DYVBOr2HJdB7KOhd/IFhLA=="
|
"Password": "DYVBOr2HJdB7KOhd/IFhLA=="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Use": true,
|
"Use": false,
|
||||||
"Letter": "o",
|
"Letter": "o",
|
||||||
"Share": "\\\\10.95.154.16\\Aixtron",
|
"Share": "\\\\10.95.154.16\\Aixtron",
|
||||||
"User": "10.95.154.16\\Aixtron",
|
"User": "10.95.154.16\\Aixtron",
|
||||||
"Password": "DYVBOr2HJdB7KOhd/IFhLA=="
|
"Password": "DYVBOr2HJdB7KOhd/IFhLA=="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Use": true,
|
"Use": false,
|
||||||
"Letter": "p",
|
"Letter": "p",
|
||||||
"Share": "\\\\10.95.154.15\\Aixtron",
|
"Share": "\\\\10.95.154.15\\Aixtron",
|
||||||
"User": "10.95.154.15\\Aixtron",
|
"User": "10.95.154.15\\Aixtron",
|
||||||
"Password": "DYVBOr2HJdB7KOhd/IFhLA=="
|
"Password": "DYVBOr2HJdB7KOhd/IFhLA=="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Use": true,
|
"Use": false,
|
||||||
"Letter": "q",
|
"Letter": "q",
|
||||||
"Share": "\\\\10.95.154.21\\Data",
|
"Share": "\\\\10.95.154.21\\Data",
|
||||||
"User": "10.95.154.21\\XRD04Admin",
|
"User": "10.95.154.21\\XRD04Admin",
|
||||||
"Password": "v1NOsEOCvbnhzKabspPcCQ=="
|
"Password": "v1NOsEOCvbnhzKabspPcCQ=="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Use": true,
|
"Use": false,
|
||||||
"Letter": "r",
|
"Letter": "r",
|
||||||
"Share": "\\\\10.95.154.23\\Data",
|
"Share": "\\\\10.95.154.23\\Data",
|
||||||
"User": "\"10.95.154.23\\infineon us\"",
|
"User": "\"10.95.154.23\\infineon us\"",
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
"Password": "tLIPgqM6R9hVQOteRnTHwPqIg3Zxv8CohTjFkjkFz8k="
|
"Password": "tLIPgqM6R9hVQOteRnTHwPqIg3Zxv8CohTjFkjkFz8k="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Use": true,
|
"Use": false,
|
||||||
"Letter": "k",
|
"Letter": "k",
|
||||||
"Share": "\\\\messdv002.na.infineon.com\\GaN_NEC\\Characterization",
|
"Share": "\\\\messdv002.na.infineon.com\\GaN_NEC\\Characterization",
|
||||||
"User": "INFINEON\\MESGaNEAF",
|
"User": "INFINEON\\MESGaNEAF",
|
||||||
@ -80,35 +80,35 @@
|
|||||||
"Password": "CUGygiPwahy4U3j+6KqqoMZ08STyVDR1rKm6MwPpt00="
|
"Password": "CUGygiPwahy4U3j+6KqqoMZ08STyVDR1rKm6MwPpt00="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Use": true,
|
"Use": false,
|
||||||
"Letter": "n",
|
"Letter": "n",
|
||||||
"Share": "\\\\10.95.154.22\\C",
|
"Share": "\\\\10.95.154.22\\C",
|
||||||
"User": "10.95.154.22\\Aixtron",
|
"User": "10.95.154.22\\Aixtron",
|
||||||
"Password": "DYVBOr2HJdB7KOhd/IFhLA=="
|
"Password": "DYVBOr2HJdB7KOhd/IFhLA=="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Use": true,
|
"Use": false,
|
||||||
"Letter": "o",
|
"Letter": "o",
|
||||||
"Share": "\\\\10.95.154.16\\Aixtron",
|
"Share": "\\\\10.95.154.16\\Aixtron",
|
||||||
"User": "10.95.154.16\\Aixtron",
|
"User": "10.95.154.16\\Aixtron",
|
||||||
"Password": "DYVBOr2HJdB7KOhd/IFhLA=="
|
"Password": "DYVBOr2HJdB7KOhd/IFhLA=="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Use": true,
|
"Use": false,
|
||||||
"Letter": "p",
|
"Letter": "p",
|
||||||
"Share": "\\\\10.95.154.15\\Aixtron",
|
"Share": "\\\\10.95.154.15\\Aixtron",
|
||||||
"User": "10.95.154.15\\Aixtron",
|
"User": "10.95.154.15\\Aixtron",
|
||||||
"Password": "DYVBOr2HJdB7KOhd/IFhLA=="
|
"Password": "DYVBOr2HJdB7KOhd/IFhLA=="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Use": true,
|
"Use": false,
|
||||||
"Letter": "q",
|
"Letter": "q",
|
||||||
"Share": "\\\\10.95.154.21\\Data",
|
"Share": "\\\\10.95.154.21\\Data",
|
||||||
"User": "10.95.154.21\\XRD04Admin",
|
"User": "10.95.154.21\\XRD04Admin",
|
||||||
"Password": "v1NOsEOCvbnhzKabspPcCQ=="
|
"Password": "v1NOsEOCvbnhzKabspPcCQ=="
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Use": true,
|
"Use": false,
|
||||||
"Letter": "r",
|
"Letter": "r",
|
||||||
"Share": "\\\\10.95.154.23\\Data",
|
"Share": "\\\\10.95.154.23\\Data",
|
||||||
"User": "\"10.95.154.23\\infineon us\"",
|
"User": "\"10.95.154.23\\infineon us\"",
|
||||||
|
@ -1,22 +1,23 @@
|
|||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"AA-CreateSelfDescription.Staging.v2_47_0-BIORAD4_EQPT": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.CreateSelfDescription.Staging.v2_47_0 & ClassName~BIORAD4_EQPT\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"AA-CreateSelfDescription.Staging.v2_47_1-BIORAD4_EQPT": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.CreateSelfDescription.Staging.v2_47_1 & ClassName~BIORAD4_EQPT\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"AB-CreateSelfDescription.Staging.v2_47_0-BIORAD5_EQPT": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.CreateSelfDescription.Staging.v2_47_0 & ClassName~BIORAD5_EQPT\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"AB-CreateSelfDescription.Staging.v2_47_1-BIORAD5_EQPT": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.CreateSelfDescription.Staging.v2_47_1 & ClassName~BIORAD5_EQPT\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"BA-CreateSelfDescription.Staging.v2_47_0-BIORAD4": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.CreateSelfDescription.Staging.v2_47_0 & ClassName~BIORAD4\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"BA-CreateSelfDescription.Staging.v2_47_1-BIORAD4": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.CreateSelfDescription.Staging.v2_47_1 & ClassName~BIORAD4\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"BB-CreateSelfDescription.Staging.v2_47_0-BIORAD5": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.CreateSelfDescription.Staging.v2_47_0 & ClassName~BIORAD5\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"BB-CreateSelfDescription.Staging.v2_47_1-BIORAD5": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.CreateSelfDescription.Staging.v2_47_1 & ClassName~BIORAD5\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"CA-CreateSelfDescription.Staging.v2_47_0-MET08THFTIRSTRATUS": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.CreateSelfDescription.Staging.v2_47_0 & ClassName~MET08THFTIRSTRATUS\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"CA-CreateSelfDescription.Staging.v2_47_1-MET08THFTIRSTRATUS": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.CreateSelfDescription.Staging.v2_47_1 & ClassName~MET08THFTIRSTRATUS\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"DA-CreateSelfDescription.Staging.v2_47_0": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.CreateSelfDescription.Staging.v2_47_0\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"DA-CreateSelfDescription.Staging.v2_47_1": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.CreateSelfDescription.Staging.v2_47_1\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"EA-Extract.Staging.v2_47_0-BIORAD4_EQPT-Staging__v2_47_0__BIORAD4_EQPT__DownloadRsMFile637953072332628623__Normal": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_0 & ClassName~BIORAD4_EQPT & Name~Staging__v2_47_0__BIORAD4_EQPT__DownloadRsMFile637953072332628623__Normal\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"EA-Extract.Staging.v2_47_1-BIORAD4_EQPT-Staging__v2_47_1__BIORAD4_EQPT__DownloadRsMFile637953072332628623__Normal": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_1 & ClassName~BIORAD4_EQPT & Name~Staging__v2_47_1__BIORAD4_EQPT__DownloadRsMFile637953072332628623__Normal\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"EB-Extract.Staging.v2_47_0-BIORAD5_EQPT-Staging__v2_47_0__BIORAD5_EQPT__DownloadRsMFile637953072332628623__Normal": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_0 & ClassName~BIORAD5_EQPT & Name~Staging__v2_47_0__BIORAD5_EQPT__DownloadRsMFile637953072332628623__Normal\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"EB-Extract.Staging.v2_47_1-BIORAD5_EQPT-Staging__v2_47_1__BIORAD5_EQPT__DownloadRsMFile637953072332628623__Normal": "dotnet test --runtime win-x64 --no-build --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_1 & ClassName~BIORAD5_EQPT & Name~Staging__v2_47_1__BIORAD5_EQPT__DownloadRsMFile637953072332628623__Normal\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"FA-Extract.Staging.v2_47_0-BIORAD4-Staging__v2_47_0__BIORAD4__RsM643047560320000000__Normal": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_0 & ClassName~BIORAD4 & Name~Staging__v2_47_0__BIORAD4__RsM643047560320000000__Normal\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"FA-Extract.Staging.v2_47_1-BIORAD4-Staging__v2_47_1__BIORAD4__RsM643047560320000000__Normal": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_1 & ClassName~BIORAD4 & Name~Staging__v2_47_1__BIORAD4__RsM643047560320000000__Normal\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"FB-Extract.Staging.v2_47_0-BIORAD5-Staging__v2_47_0__BIORAD5__RsM643047560320000000__Normal": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_0 & ClassName~BIORAD5 & Name~Staging__v2_47_0__BIORAD5__RsM643047560320000000__Normal\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"FB-Extract.Staging.v2_47_1-BIORAD5-Staging__v2_47_1__BIORAD5__RsM643047560320000000__Normal": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_1 & ClassName~BIORAD5 & Name~Staging__v2_47_1__BIORAD5__RsM643047560320000000__Normal\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"GA-Extract.Staging.v2_47_0-MET08THFTIRSTRATUS-Staging__v2_47_0__MET08THFTIRSTRATUS__MET08THFTIRSTRATUS___637745411457972777__First": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_0 & ClassName~MET08THFTIRSTRATUS & Name~Staging__v2_47_0__MET08THFTIRSTRATUS__MET08THFTIRSTRATUS___637745411457972777__First\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"GA-Extract.Staging.v2_47_1-MET08THFTIRSTRATUS-Staging__v2_47_1__MET08THFTIRSTRATUS__MET08THFTIRSTRATUS___637745411457972777__First": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_1 & ClassName~MET08THFTIRSTRATUS & Name~Staging__v2_47_1__MET08THFTIRSTRATUS__MET08THFTIRSTRATUS___637745411457972777__First\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"HA-Extract.Staging.v2_47_0-BIORAD4-Staging__v2_47_0__BIORAD4__pcl637812984345592512__MinFileLength": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_0 & ClassName~BIORAD4 & Name~Staging__v2_47_0__BIORAD4__pcl637812984345592512__MinFileLength\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"HA-Extract.Staging.v2_47_1-BIORAD4-Staging__v2_47_1__BIORAD4__pcl637812984345592512__MinFileLength": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_1 & ClassName~BIORAD4 & Name~Staging__v2_47_1__BIORAD4__pcl637812984345592512__MinFileLength\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"IA-Extract.Staging.v2_47_0-BIORAD5-Staging__v2_47_0__BIORAD5__txt637805172599370243__Why": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_0 & ClassName~BIORAD5 & Name~Staging__v2_47_0__BIORAD5__txt637805172599370243__Why\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"HB-Extract.Staging.v2_47_1-MET08THFTIRSTRATUS-Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsight638054540026319596__IqsSql": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_1 & ClassName~MET08THFTIRSTRATUS & Name~Staging__v2_47_1__MET08THFTIRSTRATUS__OpenInsight638054540026319596__IqsSql\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"IB-Extract.Staging.v2_47_0-BIORAD5-Staging__v2_47_0__BIORAD5__Stratus637805172599370243__Why": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_0 & ClassName~BIORAD5 & Name~Staging__v2_47_0__BIORAD5__Stratus637805172599370243__Why\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"IA-Extract.Staging.v2_47_1-BIORAD5-Staging__v2_47_1__BIORAD5__txt637805172599370243__Why": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_1 & ClassName~BIORAD5 & Name~Staging__v2_47_1__BIORAD5__txt637805172599370243__Why\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"IC-Extract.Staging.v2_47_0-BIORAD4-Staging__v2_47_0__BIORAD4__txt637818036815840307__ProcessFailed": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_0 & ClassName~BIORAD4 & Name~Staging__v2_47_0__BIORAD4__txt637818036815840307__ProcessFailed\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"IB-Extract.Staging.v2_47_1-BIORAD5-Staging__v2_47_1__BIORAD5__Stratus637805172599370243__Why": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_1 & ClassName~BIORAD5 & Name~Staging__v2_47_1__BIORAD5__Stratus637805172599370243__Why\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"ID-Extract.Staging.v2_47_0-BIORAD4-Staging__v2_47_0__BIORAD4__Stratus637818036815840307__ProcessFailed": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_0 & ClassName~BIORAD4 & Name~Staging__v2_47_0__BIORAD4__Stratus637818036815840307__ProcessFailed\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"IC-Extract.Staging.v2_47_1-BIORAD4-Staging__v2_47_1__BIORAD4__txt637818036815840307__ProcessFailed": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_1 & ClassName~BIORAD4 & Name~Staging__v2_47_1__BIORAD4__txt637818036815840307__ProcessFailed\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"IE-Extract.Staging.v2_47_0-BIORAD4-Staging__v2_47_0__BIORAD4__Stratus638010209430211312__MissingRecipe": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_0 & ClassName~BIORAD4 & Name~Staging__v2_47_0__BIORAD4__Stratus638010209430211312__MissingRecipe\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
"ID-Extract.Staging.v2_47_1-BIORAD4-Staging__v2_47_1__BIORAD4__Stratus637818036815840307__ProcessFailed": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_1 & ClassName~BIORAD4 & Name~Staging__v2_47_1__BIORAD4__Stratus637818036815840307__ProcessFailed\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
|
"IE-Extract.Staging.v2_47_1-BIORAD4-Staging__v2_47_1__BIORAD4__Stratus638010209430211312__MissingRecipe": "dotnet test --filter \"FullyQualifiedName~Adaptation._Tests.Extract.Staging.v2_47_1 & ClassName~BIORAD4 & Name~Staging__v2_47_1__BIORAD4__Stratus638010209430211312__MissingRecipe\" -- TestRunParameters.Parameter(name=\\\"WaitFor\\\", value=\\\"Debugger.IsAttached\\\")",
|
||||||
"Alpha": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
"Alpha": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
|
||||||
"nuget-clear": "dotnet nuget locals all --clear",
|
"nuget-clear": "dotnet nuget locals all --clear",
|
||||||
"build": "dotnet build --runtime win-x64 --self-contained",
|
"build": "dotnet build --runtime win-x64 --self-contained",
|
||||||
|
@ -107,8 +107,7 @@ public partial class FileRead : FileReaderHandler, ISMTP
|
|||||||
private void Send(EmailMessage emailMessage)
|
private void Send(EmailMessage emailMessage)
|
||||||
{
|
{
|
||||||
ISmtp smtp = Backbone.Instance.GetBackboneComponentsOfType<ISmtp>().SingleOrDefault();
|
ISmtp smtp = Backbone.Instance.GetBackboneComponentsOfType<ISmtp>().SingleOrDefault();
|
||||||
if (smtp is not null)
|
smtp?.Send(emailMessage);
|
||||||
smtp.Send(emailMessage);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ISMTP.SendLowPriorityEmailMessage(string subject, string body)
|
void ISMTP.SendLowPriorityEmailMessage(string subject, string body)
|
||||||
@ -212,14 +211,12 @@ public partial class FileRead : FileReaderHandler, ISMTP
|
|||||||
{
|
{
|
||||||
if (isErrorFile)
|
if (isErrorFile)
|
||||||
{
|
{
|
||||||
if (_FilePathGeneratorForError is null)
|
_FilePathGeneratorForError ??= new FilePathGenerator(Configuration, reportFullPath, isErrorFile: true);
|
||||||
_FilePathGeneratorForError = new FilePathGenerator(Configuration, reportFullPath, isErrorFile: true);
|
|
||||||
filePathGeneratorOriginal = _FilePathGeneratorForError;
|
filePathGeneratorOriginal = _FilePathGeneratorForError;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (_FilePathGeneratorForTarget is null)
|
_FilePathGeneratorForTarget ??= new FilePathGenerator(Configuration, reportFullPath, isErrorFile: false);
|
||||||
_FilePathGeneratorForTarget = new FilePathGenerator(Configuration, reportFullPath, isErrorFile: false);
|
|
||||||
filePathGeneratorOriginal = _FilePathGeneratorForTarget;
|
filePathGeneratorOriginal = _FilePathGeneratorForTarget;
|
||||||
}
|
}
|
||||||
result = new FilePathGeneratorInfo(filePathGeneratorOriginal, reportFullPath, isErrorFile, FileParameter);
|
result = new FilePathGeneratorInfo(filePathGeneratorOriginal, reportFullPath, isErrorFile, FileParameter);
|
||||||
|
@ -106,6 +106,7 @@
|
|||||||
<Compile Include="Adaptation\FileHandlers\OpenInsightMetrologyViewer\FileRead.cs" />
|
<Compile Include="Adaptation\FileHandlers\OpenInsightMetrologyViewer\FileRead.cs" />
|
||||||
<Compile Include="Adaptation\FileHandlers\OpenInsightMetrologyViewer\WSRequest.cs" />
|
<Compile Include="Adaptation\FileHandlers\OpenInsightMetrologyViewer\WSRequest.cs" />
|
||||||
<Compile Include="Adaptation\FileHandlers\OpenInsight\FileRead.cs" />
|
<Compile Include="Adaptation\FileHandlers\OpenInsight\FileRead.cs" />
|
||||||
|
<Compile Include="Adaptation\FileHandlers\OpenInsight\FromIQS.cs" />
|
||||||
<Compile Include="Adaptation\FileHandlers\Processed\FileRead.cs" />
|
<Compile Include="Adaptation\FileHandlers\Processed\FileRead.cs" />
|
||||||
<Compile Include="Adaptation\FileHandlers\SPaCe\FileRead.cs" />
|
<Compile Include="Adaptation\FileHandlers\SPaCe\FileRead.cs" />
|
||||||
<Compile Include="Adaptation\FileHandlers\Stratus\Description.cs" />
|
<Compile Include="Adaptation\FileHandlers\Stratus\Description.cs" />
|
||||||
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("2.47.0.0")]
|
[assembly: AssemblyVersion("2.47.1.0")]
|
||||||
[assembly: AssemblyFileVersion("2.47.0.0")]
|
[assembly: AssemblyFileVersion("2.47.1.0")]
|
@ -1,6 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using Ifx.Eaf.EquipmentConnector.File.Component;
|
using Ifx.Eaf.EquipmentConnector.File.Component;
|
||||||
using Ifx.Eaf.EquipmentConnector.File.Configuration;
|
using Ifx.Eaf.EquipmentConnector.File.Configuration;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Shared;
|
namespace Shared;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
|
||||||
using Eaf.Management.ConfigurationData.CellAutomation;
|
using Eaf.Management.ConfigurationData.CellAutomation;
|
||||||
using Ifx.Eaf.EquipmentConnector.File.Configuration;
|
using Ifx.Eaf.EquipmentConnector.File.Configuration;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace Shared;
|
namespace Shared;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user