当我使用JsonSerializer选项时
_connection.JsonSerializer.TypeNameHandling = TypeNameHandling.All
在执行_connection.Start()
时,我收到了一个错误信息:
{"StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:\r\n{\r\n Date: Tue, 04 Mar 2014 12:26:26 GMT\r\n Server: Microsoft-HTTPAPI/2.0\r\n Content-Length: 0\r\n}"}
使用下列选项后,一切工作正常: _connection.JsonSerializer.TypeNameHandling = TypeNameHandling.Auto