Ready to test Max RDS
This commit is contained in:
28
Shared/DataModels/RDS/Max.cs
Normal file
28
Shared/DataModels/RDS/Max.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace OI.Metrology.Shared.DataModels.RDS;
|
||||
|
||||
public record Max(
|
||||
[property: JsonPropertyName("reactor_type")] string ReactorType,
|
||||
[property: JsonPropertyName("reactor")] int Reactor,
|
||||
[property: JsonPropertyName("ls_id")] string LsId,
|
||||
[property: JsonPropertyName("zone")] string Zone,
|
||||
[property: JsonPropertyName("load_lock_side")] string LoadLockSide,
|
||||
[property: JsonPropertyName("rds_no")] int RdsNo,
|
||||
[property: JsonPropertyName("ps_no")] string PsNo,
|
||||
[property: JsonPropertyName("recipe_name")] string RecipeName,
|
||||
[property: JsonPropertyName("recipe_no")] int RecipeNo,
|
||||
[property: JsonPropertyName("spec_type")] string SpecType,
|
||||
[property: JsonPropertyName("spec_thick_mtool")] string SpecThickMtool,
|
||||
[property: JsonPropertyName("spec_thick_mrecipe")] string SpecThickMrecipe,
|
||||
[property: JsonPropertyName("spec_res_mtool")] string SpecResMtool,
|
||||
[property: JsonPropertyName("spec_res_mrecipe")] string SpecResMrecipe,
|
||||
[property: JsonPropertyName("spec_cres_mtool")] string SpecCresMtool,
|
||||
[property: JsonPropertyName("spec_cres_mrecipe")] string SpecCresMrecipe,
|
||||
[property: JsonPropertyName("ci_no")] int CiNo,
|
||||
[property: JsonPropertyName("spec_clean_tool")] string SpecCleanTool,
|
||||
[property: JsonPropertyName("mv_no")] int? MvNo,
|
||||
[property: JsonPropertyName("scan_tool")] string ScanTool,
|
||||
[property: JsonPropertyName("spec_surfscan_recipe")] string SpecSurfscanRecipe,
|
||||
[property: JsonPropertyName("spec_ss_samp_qty")] int? SpecSsSampQty
|
||||
);
|
@ -51,21 +51,24 @@ public class MonIn : IMonIn, IDisposable
|
||||
_WebClient.Headers[HttpRequestHeader.Authorization] = "Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(username + ":" + password));
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
public string SendStatus(
|
||||
string site,
|
||||
DateTime timeStamp,
|
||||
string resource,
|
||||
string stateName,
|
||||
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);
|
||||
|
||||
public string SendStatus(
|
||||
string site,
|
||||
string resource,
|
||||
string stateName,
|
||||
State state,
|
||||
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(
|
||||
string site,
|
||||
@ -73,14 +76,16 @@ public class MonIn : IMonIn, IDisposable
|
||||
string resource,
|
||||
string stateName,
|
||||
State state,
|
||||
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(
|
||||
string site,
|
||||
string resource,
|
||||
string subresource,
|
||||
string stateName,
|
||||
State state) => SendStatus(site, new DateTime?(), resource, subresource, stateName, state, string.Empty);
|
||||
State state) =>
|
||||
SendStatus(site, new DateTime?(), resource, subresource, stateName, state, string.Empty);
|
||||
|
||||
public string SendStatus(
|
||||
string site,
|
||||
@ -88,7 +93,8 @@ public class MonIn : IMonIn, IDisposable
|
||||
string resource,
|
||||
string subresource,
|
||||
string stateName,
|
||||
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);
|
||||
|
||||
public string SendStatus(
|
||||
string site,
|
||||
@ -96,7 +102,8 @@ public class MonIn : IMonIn, IDisposable
|
||||
string subresource,
|
||||
string stateName,
|
||||
State state,
|
||||
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(
|
||||
string site,
|
||||
@ -116,21 +123,24 @@ public class MonIn : IMonIn, IDisposable
|
||||
string site,
|
||||
string resource,
|
||||
string performanceName,
|
||||
double value) => SendPerformanceMessage(site, new DateTime?(), resource, string.Empty, performanceName, value, string.Empty, string.Empty, new int?());
|
||||
double value) =>
|
||||
SendPerformanceMessage(site, new DateTime?(), resource, string.Empty, performanceName, value, string.Empty, string.Empty, new int?());
|
||||
|
||||
public string SendPerformanceMessage(
|
||||
string site,
|
||||
DateTime? timeStamp,
|
||||
string resource,
|
||||
string performanceName,
|
||||
double value) => SendPerformanceMessage(site, timeStamp, resource, string.Empty, performanceName, value, string.Empty, string.Empty, new int?());
|
||||
double value) =>
|
||||
SendPerformanceMessage(site, timeStamp, resource, string.Empty, performanceName, value, string.Empty, string.Empty, new int?());
|
||||
|
||||
public string SendPerformanceMessage(
|
||||
string site,
|
||||
string resource,
|
||||
string performanceName,
|
||||
double value,
|
||||
string description) => SendPerformanceMessage(site, new DateTime?(), resource, string.Empty, performanceName, value, description, string.Empty, new int?());
|
||||
string description) =>
|
||||
SendPerformanceMessage(site, new DateTime?(), resource, string.Empty, performanceName, value, description, string.Empty, new int?());
|
||||
|
||||
public string SendPerformanceMessage(
|
||||
string site,
|
||||
@ -138,7 +148,8 @@ public class MonIn : IMonIn, IDisposable
|
||||
string resource,
|
||||
string performanceName,
|
||||
double value,
|
||||
string description) => SendPerformanceMessage(site, timeStamp, resource, string.Empty, performanceName, value, description, string.Empty, new int?());
|
||||
string description) =>
|
||||
SendPerformanceMessage(site, timeStamp, resource, string.Empty, performanceName, value, description, string.Empty, new int?());
|
||||
|
||||
public string SendPerformanceMessage(
|
||||
string site,
|
||||
@ -146,7 +157,8 @@ public class MonIn : IMonIn, IDisposable
|
||||
string resource,
|
||||
string performanceName,
|
||||
double value,
|
||||
int? interval) => SendPerformanceMessage(site, timeStamp, resource, string.Empty, performanceName, value, string.Empty, string.Empty, interval);
|
||||
int? interval) =>
|
||||
SendPerformanceMessage(site, timeStamp, resource, string.Empty, performanceName, value, string.Empty, string.Empty, interval);
|
||||
|
||||
public string SendPerformanceMessage(
|
||||
string site,
|
||||
@ -154,7 +166,8 @@ public class MonIn : IMonIn, IDisposable
|
||||
DateTime? timeStamp,
|
||||
string performanceName,
|
||||
double value,
|
||||
string unit) => SendPerformanceMessage(site, timeStamp, resource, string.Empty, performanceName, value, string.Empty, unit, new int?());
|
||||
string unit) =>
|
||||
SendPerformanceMessage(site, timeStamp, resource, string.Empty, performanceName, value, string.Empty, unit, new int?());
|
||||
|
||||
public string SendPerformanceMessage(
|
||||
string site,
|
||||
@ -163,14 +176,16 @@ public class MonIn : IMonIn, IDisposable
|
||||
string performanceName,
|
||||
double value,
|
||||
string unit,
|
||||
int? interval) => SendPerformanceMessage(site, timeStamp, resource, string.Empty, performanceName, value, string.Empty, unit, interval);
|
||||
int? interval) =>
|
||||
SendPerformanceMessage(site, timeStamp, resource, string.Empty, performanceName, value, string.Empty, unit, interval);
|
||||
|
||||
public string SendPerformanceMessage(
|
||||
string site,
|
||||
string resource,
|
||||
string subresource,
|
||||
string performanceName,
|
||||
double value) => SendPerformanceMessage(site, new DateTime?(), resource, subresource, performanceName, value, string.Empty, string.Empty, new int?());
|
||||
double value) =>
|
||||
SendPerformanceMessage(site, new DateTime?(), resource, subresource, performanceName, value, string.Empty, string.Empty, new int?());
|
||||
|
||||
public string SendPerformanceMessage(
|
||||
string site,
|
||||
@ -178,7 +193,8 @@ public class MonIn : IMonIn, IDisposable
|
||||
string resource,
|
||||
string subresource,
|
||||
string performanceName,
|
||||
double value) => SendPerformanceMessage(site, timeStamp, resource, subresource, performanceName, value, string.Empty, string.Empty, new int?());
|
||||
double value) =>
|
||||
SendPerformanceMessage(site, timeStamp, resource, subresource, performanceName, value, string.Empty, string.Empty, new int?());
|
||||
|
||||
public string SendPerformanceMessage(
|
||||
string site,
|
||||
@ -186,7 +202,8 @@ public class MonIn : IMonIn, IDisposable
|
||||
string subresource,
|
||||
string performanceName,
|
||||
double value,
|
||||
string description) => SendPerformanceMessage(site, new DateTime?(), resource, subresource, performanceName, value, description, string.Empty, new int?());
|
||||
string description) =>
|
||||
SendPerformanceMessage(site, new DateTime?(), resource, subresource, performanceName, value, description, string.Empty, new int?());
|
||||
|
||||
public string SendPerformanceMessage(
|
||||
string site,
|
||||
@ -195,7 +212,8 @@ public class MonIn : IMonIn, IDisposable
|
||||
string subresource,
|
||||
string performanceName,
|
||||
double value,
|
||||
int? interval) => SendPerformanceMessage(site, timeStamp, resource, subresource, performanceName, value, string.Empty, string.Empty, interval);
|
||||
int? interval) =>
|
||||
SendPerformanceMessage(site, timeStamp, resource, subresource, performanceName, value, string.Empty, string.Empty, interval);
|
||||
|
||||
public string SendPerformanceMessage(
|
||||
string site,
|
||||
@ -204,7 +222,8 @@ public class MonIn : IMonIn, IDisposable
|
||||
string subresource,
|
||||
string performanceName,
|
||||
double value,
|
||||
string unit) => SendPerformanceMessage(site, timeStamp, resource, subresource, performanceName, value, string.Empty, unit, new int?());
|
||||
string unit) =>
|
||||
SendPerformanceMessage(site, timeStamp, resource, subresource, performanceName, value, string.Empty, unit, new int?());
|
||||
|
||||
public string SendPerformanceMessage(
|
||||
string site,
|
||||
|
@ -3,6 +3,7 @@ namespace OI.Metrology.Shared.Models;
|
||||
public interface IWorkingDirectory
|
||||
{
|
||||
|
||||
static string GetWorkingDirectory(string? executingAssemblyName, string subDirectoryName) => WorkingDirectory.GetWorkingDirectory(executingAssemblyName, subDirectoryName);
|
||||
static string GetWorkingDirectory(string? executingAssemblyName, string subDirectoryName) =>
|
||||
WorkingDirectory.GetWorkingDirectory(executingAssemblyName, subDirectoryName);
|
||||
|
||||
}
|
11
Shared/Repositories/IRdsMaxRepo.cs
Normal file
11
Shared/Repositories/IRdsMaxRepo.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace OI.Metrology.Shared.Repositories;
|
||||
|
||||
using DataModels.RDS;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public interface IRdsMaxRepo
|
||||
{
|
||||
|
||||
Max[] GetMaxRDS();
|
||||
List<string[]> Convert(Max[] collection);
|
||||
}
|
Reference in New Issue
Block a user