public static T Role <T>() { _custom = new CustomIdentity(); return((T)TypeDescriptor.GetConverter(typeof(T)).ConvertTo((object)_custom.Role, typeof(T))); }
public static T ExtendedObject <T>() { _custom = new CustomIdentity(); return(JsonConvert.DeserializeObject <T>(_custom.ExtendedProperties)); }
public static string ExtendedObject() { _custom = new CustomIdentity(); return(_custom.ExtendedProperties); }
public static bool IsAuthenticated() { _custom = new CustomIdentity(); return(_custom.IsAuthenticated); }
public static string IP() { _custom = new CustomIdentity(); return(_custom.IP); }
public static string UserAgent() { _custom = new CustomIdentity(); return(_custom.UserAgent); }
public static string Lastname() { _custom = new CustomIdentity(); return(_custom.LastName); }
public static string Type() { _custom = new CustomIdentity(); return(_custom.Type); }
public static string Username() { _custom = new CustomIdentity(); return(_custom.Username); }
public static string Email() { _custom = new CustomIdentity(); return(_custom.Email); }
public static int ID() { _custom = new CustomIdentity(); return(_custom.ID); }