internal static Claim ToDomain(this IdentityClaimModelBase identityClaimModel)
        {
            NullGuard.NotNull(identityClaimModel, nameof(identityClaimModel));

            return(string.IsNullOrWhiteSpace(identityClaimModel.ClaimValue)
                ? identityClaimModel.Claim.ToDomain()
                : ClaimHelper.CreateClaim(identityClaimModel.Claim.ClaimType, identityClaimModel.ClaimValue));
        }
Exemplo n.º 2
0
        internal static Claim ToDomain(this ClaimModel claimModel)
        {
            NullGuard.NotNull(claimModel, nameof(claimModel));

            return(ClaimHelper.CreateClaim(claimModel.ClaimType, claimModel.ClaimValue));
        }