19 lines
436 B
C#
19 lines
436 B
C#
namespace StellaOps.Scanner.WebService.Domain;
|
|
|
|
public readonly record struct ScanId(string Value)
|
|
{
|
|
public override string ToString() => Value;
|
|
|
|
public static bool TryParse(string? value, out ScanId scanId)
|
|
{
|
|
if (!string.IsNullOrWhiteSpace(value))
|
|
{
|
|
scanId = new ScanId(value.Trim());
|
|
return true;
|
|
}
|
|
|
|
scanId = default;
|
|
return false;
|
|
}
|
|
}
|