genxgeek
genxgeek

Reputation: 13357

How can I pass values into MediaTypeFormatter methods?

I have the following MVC TypeFormatter code and I need assistance how to:

Upvotes: 0

Views: 307

Answers (1)

VJAI
VJAI

Reputation: 32768

Access the Request object to get the full/relative path but it's not available.

You can get it from HttpContext.Curent.Request and for that you need to have reference to System.Web asembly.

Upvotes: 1

Related Questions