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