notify doctors work, audit work, new product advisory sprints
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
using StellaOps.Determinism;
|
||||
|
||||
namespace StellaOps.Scanner.WebService.Domain;
|
||||
|
||||
public readonly record struct ScanId(string Value)
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new ScanId with a random GUID value.
|
||||
/// Creates a new ScanId with a provided GUID generator.
|
||||
/// </summary>
|
||||
public static ScanId New() => new(Guid.NewGuid().ToString("D"));
|
||||
public static ScanId New(IGuidProvider guidProvider)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(guidProvider);
|
||||
return new ScanId(guidProvider.NewGuid().ToString("D"));
|
||||
}
|
||||
|
||||
public override string ToString() => Value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user