How to use the HttpContext object in server-side Blazor to retrieve information about the user, user agent
问题 IP Address, and such like. Very often when users ask how to do it in Server Blazor app, they are either told that it is not possible, or sometimes offered partial solutions employing JSInterop. But can it be done without resorting to JSInterop ? Here's the answer... 回答1: The fiction that the HttpContext object can't be used with Blazor Server App, has been long propagated in stackoverflow, and it is high time to pension it off. It is true that the HttpContext is not available when a WebSocket