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