示例#1
0
 public static IMultiFactorInfo Create(MultiFactorInfo multiFactorInfo)
 {
     return(multiFactorInfo switch
     {
         PhoneMultiFactorInfo phoneMultiFactorInfo => new PhoneMultiFactorInfoWrapper(phoneMultiFactorInfo),
         _ => new MultiFactorInfoWrapper(multiFactorInfo)
     });
示例#2
0
 public MultiFactorInfoWrapper(MultiFactorInfo multiFactorInfo)
 {
     _multiFactorInfo = multiFactorInfo ?? throw new ArgumentNullException(nameof(multiFactorInfo));
 }