Esempio n. 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)));
 }
Esempio n. 2
0
 public static IResourceName TryParse(string name)
 {
     return(name.IsNullOrWhiteSpace()
         ? null
         : SpnName.TryParse(name) ?? ((IResourceName)UpnName.TryParse(name) ?? SamName.TryParse(name)));
 }