Timothy Dooling
Timothy Dooling

Reputation: 500

How do I replace HttpContext.Current in .NET Framework 4.5.2?

I have a component library called in an application as a web api repository base to interface with an api that handles all database interactions.

I use HttpContext.Current to get things like the current profile or the current Request.

Since it's going away, I want to remove it from my code but I will want to be able to collect information to send to my api.

Is there an alternative method of accessing the application instance my code is running in other than HttpContext.Current?

Upvotes: 0

Views: 73

Answers (0)

Related Questions