Exemple #1
0
 UnconditionalPolicy(UnconditionalPolicy from)
 {
     disposable      = from.disposable;
     primaryIdentity = from.disposable ? SecurityUtils.CloneIdentityIfNecessary(from.primaryIdentity) : from.primaryIdentity;
     if (from.issuance != null)
     {
         issuance = from.disposable ? SecurityUtils.CloneClaimSetIfNecessary(from.issuance) : from.issuance;
     }
     else
     {
         issuances = from.disposable ? SecurityUtils.CloneClaimSetsIfNecessary(from.issuances) : from.issuances;
     }
     issuer         = from.issuer;
     expirationTime = from.expirationTime;
 }
Exemple #2
0
 private UnconditionalPolicy(UnconditionalPolicy from)
 {
     IsDisposable     = from.IsDisposable;
     _primaryIdentity = from.IsDisposable ? SecurityUtils.CloneIdentityIfNecessary(from._primaryIdentity) : from._primaryIdentity;
     if (from._issuance != null)
     {
         _issuance = from.IsDisposable ? SecurityUtils.CloneClaimSetIfNecessary(from._issuance) : from._issuance;
     }
     else
     {
         _issuances = from.IsDisposable ? SecurityUtils.CloneClaimSetsIfNecessary(from._issuances) : from._issuances;
     }
     Issuer         = from.Issuer;
     ExpirationTime = from.ExpirationTime;
 }