Exemplo n.º 1
0
 internal void Merge(Claimset claimset)
 {
     this.Name      = claimset.Name;
     this.Provider  = claimset.Name;
     this.Signature = claimset.Name;
     foreach (var from in claimset.Claims)
     {
         Claim claim;
         if (!this.Claims.TryGetValue(from.Key, out claim))
         {
             claim = from.Value;
         }
         else
         {
             claim.Merge(from.Value);
         }
     }
 }
Exemplo n.º 2
0
 internal void Merge(Claimset claimset)
 {
     this.Name = claimset.Name;
     this.Provider = claimset.Name;
     this.Signature = claimset.Name;
     foreach (var from in claimset.Claims)
     {
         Claim claim;
         if (!this.Claims.TryGetValue(from.Key, out claim))
         {
             claim = from.Value;
         }
         else
         {
             claim.Merge(from.Value);
         }
     }
 }