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