I am migrating a legacy application written in Asp.Net MVC framework to ASP.net core MVC and some classes use HttpApplicationState
to share cache object between all the users of the app
I've tried to read online about a replacement for this object (like IFormFile
replacing HttpPostedFile
) but could not find any information regarding this object
/* This method being called from the global.asax file in framework app and
usses the HttpApplicationState */
public static void Foo(HttpApplicationState app)
{
app.Set("Cache", cache);
}
I would like to know how can i achieve a similar behavior in my migrated application