Apologies - I know this type of question has been asked many times, but I'm still not able to get my stuff to work.
Having defined a new formatter to return PDF so a client could specify Accept = application/pdf before accessing a resource, I want to do something (in glabal.asax.cs I assume) as simple as :
I don't want to write reams of code involving MEF, containers, logging channels etc. - I just want a simple way to include the new formatter along side Json and Xml which seem to work out of the box for me.
I have seen other posts that refer to HttpHostConfiguration.Build().AddFormatters but cant seem to find that in preview 4.
Can anyone help, please. I am going slightly nuts over this.