AddBody 호출의 직렬화 된 결과에 액세스하는 방법을 찾고 있습니다.RestSharp 직렬화 출력을 얻습니다.
내장 된 RestSharp 직렬화기를 사용하고 있습니다. 예 :
class Foo
{
public string FooField;
}
void SendRecord()
{
var f = new Foo();
f.FooField = "My Value";
request.AddBody(f);
// How do I get the serialized json result of the add body call without
// data? I would like to log the serialized output of the add body call to
// the database.
//Expected {"FooField":"My Value"}
var response = client.Execute(request);
}
자세한 내용과 코드 예를 제공해주십시오. – 1232133d2ffa
완료. 업데이트 된 게시물 ... – Nikoli