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