AzureDevOpsRepository

Switch to DataGrid
Markdown links
Add css for files, leo and mes
copySelectedB
Logic for other collections
monospace
Ticks bug fix, default to *.wc files and formatting
This commit is contained in:
2024-10-14 12:24:43 -07:00
parent 018382e218
commit 141f9c084a
58 changed files with 3203 additions and 126 deletions

View File

@ -1,3 +1,5 @@
using System.Text.Json.Serialization;
namespace OI.Metrology.Shared.DataModels;
public class WaferCounterArchive
@ -25,4 +27,10 @@ public class WaferCounterArchive
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);
}