Getting QueryString in net standard

Y a h y a 416 Reputation points
2021-05-16T13:04:29.897+00:00

Hi

My Blazor net core 3.1 app references a net standard 2.1 class library project. In the referenced net standard 2.1 class library project I need to get the QueryString passed to the Blazor app. I am looking for a simple example of getting QueryString (using IHttpContextAccessor?). As its a net standard project I can not use HttpContext.Current.Request.QueryString.

Thanks

Regards

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,919 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,596 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.