Beispiel #1
0
 private static DomainResourceName TryParse(string domainName, IReadOnlyCollection <string> nameParts)
 {
     return(nameParts == null || nameParts.None()
         ? null
         : new DomainResourceName(NetworkName.TryParse(domainName), SpnName.TryParse(nameParts, false)));
 }
Beispiel #2
0
 public static IResourceName TryParse(string name)
 {
     return(name.IsNullOrWhiteSpace()
         ? null
         : SpnName.TryParse(name) ?? ((IResourceName)UpnName.TryParse(name) ?? SamName.TryParse(name)));
 }