Esempio n. 1
0
 public static IResourceName TryParse(string name)
 {
     return(name.IsNullOrWhiteSpace()
         ? null
         : SpnName.TryParse(name) ?? ((IResourceName)UpnName.TryParse(name) ?? SamName.TryParse(name)));
 }
Esempio n. 2
0
 public static ISecurityPrincipalName TryParse(string name)
 {
     return(name.IsNullOrWhiteSpace()
         ? null
         : ((ISecurityPrincipalName)UpnName.TryParse(name) ?? SamName.TryParse(name)));
 }