Exemple #1
0
 public static T Role <T>()
 {
     _custom = new CustomIdentity();
     return((T)TypeDescriptor.GetConverter(typeof(T)).ConvertTo((object)_custom.Role, typeof(T)));
 }
Exemple #2
0
 public static T ExtendedObject <T>()
 {
     _custom = new CustomIdentity();
     return(JsonConvert.DeserializeObject <T>(_custom.ExtendedProperties));
 }
Exemple #3
0
 public static string ExtendedObject()
 {
     _custom = new CustomIdentity();
     return(_custom.ExtendedProperties);
 }
Exemple #4
0
 public static bool IsAuthenticated()
 {
     _custom = new CustomIdentity();
     return(_custom.IsAuthenticated);
 }
Exemple #5
0
 public static string IP()
 {
     _custom = new CustomIdentity();
     return(_custom.IP);
 }
Exemple #6
0
 public static string UserAgent()
 {
     _custom = new CustomIdentity();
     return(_custom.UserAgent);
 }
Exemple #7
0
 public static string Lastname()
 {
     _custom = new CustomIdentity();
     return(_custom.LastName);
 }
Exemple #8
0
 public static string Type()
 {
     _custom = new CustomIdentity();
     return(_custom.Type);
 }
Exemple #9
0
 public static string Username()
 {
     _custom = new CustomIdentity();
     return(_custom.Username);
 }
Exemple #10
0
 public static string Email()
 {
     _custom = new CustomIdentity();
     return(_custom.Email);
 }
Exemple #11
0
 public static int ID()
 {
     _custom = new CustomIdentity();
     return(_custom.ID);
 }