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:
@ -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
|
||||
{
|
||||
}
|
@ -13,4 +13,4 @@ public record CharacterizationParameters([property: JsonPropertyName("area")] st
|
||||
[JsonSerializable(typeof(CharacterizationParameters))]
|
||||
public partial class CharacterizationParametersSourceGenerationContext : JsonSerializerContext
|
||||
{
|
||||
}
|
||||
}
|
17
Shared/Models/PollValue.cs
Normal file
17
Shared/Models/PollValue.cs
Normal 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
|
||||
{
|
||||
}
|
16
Shared/Models/Stateless/IAzureDevOpsController.cs
Normal file
16
Shared/Models/Stateless/IAzureDevOpsController.cs
Normal 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();
|
||||
|
||||
}
|
8
Shared/Models/Stateless/IAzureDevOpsRepository.cs
Normal file
8
Shared/Models/Stateless/IAzureDevOpsRepository.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace OI.Metrology.Shared.Models.Stateless;
|
||||
|
||||
public interface IAzureDevOpsRepository
|
||||
{
|
||||
|
||||
void Save(PollValue pollValue);
|
||||
|
||||
}
|
Reference in New Issue
Block a user