Questions tagged [httpcontext]

HttpContext is a class from .NET Framework which provides information about an HTTP request.

HttpContext is a class from .NET Framework which provides information about an HTTP request.

1127 questions
-3
votes
1 answer

Accessing http headers in .NET Core 3.0 Api

Inject IHttpContextAccessor through constructor. private readonly IHttpContextAccessor _httpContextAccessor; public Handler(IHttpContextAccessor httpContextAccessor) { _userManager = userManager; …
Dev-lop-er
  • 578
  • 1
  • 7
  • 16
-3
votes
2 answers

How to properly extract content from object converted to string c#?

I am writing Unit-Tests and am trying to extract a value from a HttpResponseMessage. I am trying to get the value resultCount. Currenly my string looks like this:"{"resultCount":5,"works":null,"success::false,"errors"null}" Any ideas how I can get…
jward01
  • 750
  • 4
  • 11
  • 26
1 2 3
75
76