How to get hold of Content that is already read
I have a class that inherits from ApiController. It has a Put-method like this:
I have a class that inherits from ApiController. It has a Put-method like this:
I’m creating an ASP.NET Web API 2.1 site and as I want to inject dependencies directly into the controllers, I’ve created my own implementation of IDependencyResolver so that StructureMap will handle that for me.
Questions
I’ve got the following action on an ApiController:
Simple question, and I am sure it has a simple answer but I can’t find it.
Is it possible to access HttpContext.Current.Session through a WebAPI ? can we make it inheriting IRequiresSession?
I need to audit log calls to my Web API, ideally I’d like to use an Attribute, something like:
In ASP.NET MVC , one can access the form post data:
I have the default Route in Global.asax:
I recently asked a question about caching application data in an ASP.NET MVC WebAPI application and it led me to a new question. What are the pros/cons of different caching methods available in ASP.NET?