Practical ASP.NET Web API by Badrinarayanan Lakshmiraghavan

Practical ASP.NET Web API by Badrinarayanan Lakshmiraghavan

Author:Badrinarayanan Lakshmiraghavan
Language: eng
Format: mobi, epub, pdf
Tags: C#, Computers, Programming, Microsoft, Programming Languages
ISBN: 9781430261759
Publisher: Apress
Published: 2013-08-21T04:00:00+00:00


When the execution breaks in the ReadFromStreamAsync method of the media formatter class, inspect the encoding variable. It will be System.Text.UnicodeEncoding, which is UTF-16. So, the MediaTypeFormatter base class is giving us the encoding coming in the request so we can construct the StreamReader object correctly and read the stream.

Press F5 to let the execution continue. When the execution breaks in the action method, inspect the parameter. It will be set in accordance with what we have sent in the request body.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.