Exemple #1
0
        public ClaimBuilder(Claim claim)
        {
            claim = claim?.Clone();

            this._issuer         = claim?.Issuer;
            this._originalIssuer = claim?.OriginalIssuer;
            this._type           = claim?.Type;
            this._value          = claim?.Value;
            this._valueType      = claim?.ValueType;

            if (claim?.Properties == null)
            {
                return;
            }

            foreach (var property in claim.Properties)
            {
                this._properties.Add(property.Key, property.Value);
            }
        }