public ImportRef(string identifier) { if (Guid.TryParse(identifier, out var guid)) { Id = guid; } else if (ImportUrn.TryParse(identifier, out var urn)) { UniversalId = urn; } else { throw new FormatException($"Import identifier {identifier} is not a valid Guid or Urn"); } }
public ImportRef(Guid?id, ImportUrn urn) { Id = id; UniversalId = urn; }
public ImportRef(ImportUrn urn) { UniversalId = urn; }