Use less memory when generating a GuidUdi (#13090)

* Use less memory when generating a GuidUdi

* PR feedback

Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com>
This commit is contained in:
patrickdemooij9
2022-10-04 01:49:59 +02:00
committed by GitHub
parent 71276b7b4d
commit 31cb328c3b
4 changed files with 111 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ public class StringUdi : Udi
/// <param name="entityType">The entity type part of the udi.</param>
/// <param name="id">The string id part of the udi.</param>
public StringUdi(string entityType, string id)
: base(entityType, "umb://" + entityType + "/" + EscapeUriString(id)) =>
: base(entityType, Constants.Conventions.Udi.Prefix + entityType + "/" + EscapeUriString(id)) =>
Id = id;
/// <summary>