Browse Source

Revise IdentityClaimType ctor and properties

pull/1070/head
Halil ibrahim Kalkan 8 years ago
parent
commit
9ef3533141
  1. 6
      modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityClaimValueType.cs
  2. 26
      modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityClaimType.cs

6
modules/identity/src/Volo.Abp.Identity.Domain.Shared/Volo/Abp/Identity/IdentityClaimValueType.cs

@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Volo.Abp.Identity
namespace Volo.Abp.Identity
{
public enum IdentityClaimValueType
{

26
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityClaimType.cs

@ -1,5 +1,5 @@
using System;
using JetBrains.Annotations;
using JetBrains.Annotations;
using System;
using Volo.Abp.Domain.Entities;
namespace Volo.Abp.Identity
@ -8,15 +8,15 @@ namespace Volo.Abp.Identity
{
public virtual string Name { get; protected set; }
public virtual bool Required { get; protected set; }
public virtual bool Required { get; set; }
public virtual bool IsStatic { get; protected set; }
public virtual string Regex { get; protected set; }
public virtual string Regex { get; set; }
public virtual string RegexDescription { get; protected set; }
public virtual string RegexDescription { get; set; }
public virtual string Description { get; protected set; }
public virtual string Description { get; set; }
public virtual IdentityClaimValueType ValueType { get; protected set; }
@ -25,12 +25,18 @@ namespace Volo.Abp.Identity
}
public IdentityClaimType(Guid id, [NotNull] string name, bool required, bool isStatic, [CanBeNull]string regex, [CanBeNull]string regexDescription, [CanBeNull] string description, IdentityClaimValueType valueType = IdentityClaimValueType.String)
public IdentityClaimType(
Guid id,
[NotNull] string name,
bool required = false,
bool isStatic = false,
[CanBeNull] string regex = null,
[CanBeNull] string regexDescription = null,
[CanBeNull] string description = null,
IdentityClaimValueType valueType = IdentityClaimValueType.String)
{
Check.NotNull(name, nameof(name));
Id = id;
Name = name;
Name = Check.NotNull(name, nameof(name));
Required = required;
IsStatic = isStatic;
Regex = regex;

Loading…
Cancel
Save