Esempio n. 1
0
 public static T GetProfilePropertyForCurrentUser <T>(this DragonContext ctx, string key, object value)
 {
     return(DragonContext.ProfileStore.GetProperty <T>(ctx.CurrentUserID, key));
 }
Esempio n. 2
0
 public static bool IsAuthenticated(this DragonContext ctx)
 {
     return(!ctx.CurrentUserID.Equals(Guid.Empty));
 }
Esempio n. 3
0
 public static void SetProfilePropertyForCurrentUser(this DragonContext ctx, string key, object value)
 {
     DragonContext.ProfileStore.SetProperty(ctx.CurrentUserID, key, value);
 }