System.Security.Claims.ClaimsIdentity.SafeAddClaim C# (CSharp) 메소드

SafeAddClaim() 개인적인 메소드

Adds claim to intenal list. Calling Claim.Clone if Claim.Subject != this.
private only call from constructor, adds to internal list.
private SafeAddClaim ( Claim claim ) : void
claim Claim
리턴 void
        private void SafeAddClaim(Claim claim)
        {
            if (claim == null)
                return;

            if (object.ReferenceEquals(claim.Subject, this))
            {
                _instanceClaims.Add(claim);
            }
            else
            {
                _instanceClaims.Add(claim.Clone(this));
            }
        }