AzureDevOpsRepository
Markdown links
Ticks bug fix, default to *.wc files and formatting
This commit is contained in:
2025-02-21 11:13:56 -07:00
parent 4c2bef71ec
commit 2afb312065
32 changed files with 661 additions and 593 deletions

View File

@ -0,0 +1,36 @@
using System.Text.Json.Serialization;
namespace OI.Metrology.Shared.DataModels;
public class WaferCounterArchive
{
public long ID { get; set; }
public DateTime InsertDate { get; set; }
public Guid AttachmentID { get; set; }
public string? Title { get; set; }
public DateTime Date { get; set; }
public long ToolTypeID { get; set; }
public string? ToolTypeName { get; set; }
public string? MesEntity { get; set; }
public string? Employee { get; set; }
public string? Layer { get; set; }
public string? PSN { get; set; }
public string? RDS { get; set; }
public string? Reactor { get; set; }
public string? Recipe { get; set; }
public string? Zone { get; set; }
public string? SlotMap { get; set; }
public string? Text { get; set; }
public int? Total { get; set; }
}
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString)]
[JsonSerializable(typeof(WaferCounterArchive))]
public partial class WaferCounterArchiveSourceGenerationContext : JsonSerializerContext
{
}

View File

@ -13,4 +13,4 @@ public record CharacterizationParameters([property: JsonPropertyName("area")] st
[JsonSerializable(typeof(CharacterizationParameters))]
public partial class CharacterizationParametersSourceGenerationContext : JsonSerializerContext
{
}
}

View File

@ -0,0 +1,17 @@
using System.Text.Json.Serialization;
namespace OI.Metrology.Shared.Models;
public record PollValue(string? Json,
[property: JsonPropertyName("id")] int? Id,
[property: JsonPropertyName("page")] string? Page,
string? QueryString,
string? RemoteIpAddress,
[property: JsonPropertyName("time")] long? Time,
[property: JsonPropertyName("value")] int? Value);
[JsonSourceGenerationOptions(WriteIndented = true, NumberHandling = JsonNumberHandling.AllowReadingFromString)]
[JsonSerializable(typeof(PollValue))]
public partial class PollValueSourceGenerationContext : JsonSerializerContext
{
}

View File

@ -0,0 +1,16 @@
namespace OI.Metrology.Shared.Models.Stateless;
public interface IAzureDevOpsController<T>
{
enum Action : int
{
Index = 0,
Save = 1
}
static string GetRouteName() => nameof(IAzureDevOpsController<T>)[1..^10];
T Save();
}

View File

@ -0,0 +1,8 @@
namespace OI.Metrology.Shared.Models.Stateless;
public interface IAzureDevOpsRepository
{
void Save(PollValue pollValue);
}

View File

@ -1,3 +1,6 @@
using OI.Metrology.Shared.DataModels;
using System.Collections.ObjectModel;
namespace OI.Metrology.Shared.Models.Stateless;
public interface IFileShareRepository
@ -7,9 +10,10 @@ public interface IFileShareRepository
void MoveFile(string from, string to);
Uri Append(Uri uri, params string[] paths);
void FileWrite(string path, string contents);
ReadOnlyCollection<ToolTypeNameId> GetEquipmentIds();
HttpResponseMessage ReadFile(HttpClient httpClient, Uri uri);
void CopyFile(HttpClient httpClient, string from, string to);
void MoveFile(HttpClient httpClient, string from, string to);
List<CharacterizationInfo> GetArchiveData(CharacterizationParameters characterizationParameters);
List<NginxFileSystemSortable> GetNginxFileSystemSortableCollection(HttpClient httpClient, Uri uri, string? endsWith);
ReadOnlyCollection<CharacterizationInfo> GetArchiveData(CharacterizationParameters characterizationParameters);
ReadOnlyCollection<NginxFileSystemSortable> GetNginxFileSystemSortableCollection(HttpClient httpClient, Uri uri, string? endsWith);
}