Beispiel #1
0
 internal static ClaimSet CloneClaimSetIfNecessary(ClaimSet claimSet)
 {
     if (claimSet != null)
     {
         WindowsClaimSet set = claimSet as WindowsClaimSet;
         if (set != null)
         {
             return(set.Clone());
         }
     }
     return(claimSet);
 }
Beispiel #2
0
 internal static ClaimSet CloneClaimSetIfNecessary(ClaimSet claimSet)
 {
     if (claimSet != null)
     {
         WindowsClaimSet wic = claimSet as WindowsClaimSet;
         if (wic != null)
         {
             return(wic.Clone());
         }
         //X509CertificateClaimSet x509 = claimSet as X509CertificateClaimSet;
         //if (x509 != null)
         //{
         //    return x509.Clone();
         //}
     }
     return(claimSet);
 }