4

restsharp を同期的に使用する方法はありますか? Visual Studio で目にするすべてのメソッドには、"async" の接尾辞と restsharp のメイン ページがあります (次の例があります)。

// execute the request
RestResponse response = client.Execute(request);
var content = response.Content; // raw content as string

同期リクエストと非同期リクエストを明確に区別します。

// easy async support
client.ExecuteAsync(request, response => {
    Console.WriteLine(response.Content);
});

この「実行」同期メソッドにアクセスするにはどうすればよいですか?

4

1 に答える 1

4

googlegroups で尋ねたところ、wp7 を使用する際の「プラットフォームの制限」が原因であるとのことでした。かなりきれいですよね?

于 2012-12-13T20:18:22.960 に答える