31 lines
693 B
C#
31 lines
693 B
C#
using System;
|
|
namespace ln.identities
|
|
{
|
|
public class RequireAttribute : Attribute
|
|
{
|
|
public String IdentityName { get; set; } = null;
|
|
public Guid IdentityUniqueID { get; set; } = Guid.Empty;
|
|
|
|
public Role Role { get; set; }
|
|
|
|
public RequireAttribute()
|
|
{
|
|
}
|
|
|
|
public RequireAttribute(String IdentityName)
|
|
{
|
|
this.IdentityName = IdentityName;
|
|
}
|
|
public RequireAttribute(Role Role)
|
|
{
|
|
this.Role = Role;
|
|
}
|
|
public RequireAttribute(String IdentityName,Role Role)
|
|
{
|
|
this.IdentityName = IdentityName;
|
|
this.Role = Role;
|
|
}
|
|
|
|
}
|
|
}
|