In my Razor Pages, I have a current user field:
public User CurrentUser { get; set; } public async Task SetCurrentUser