Given the following code:
给出以下代码:
using (var client = new WebClient())
{
string url = string.Concat(someUrl, "SomeControllerName/", currentId, "/WriteLogFile");
var toWrite = DateTime.Now
/* Code to post object to URL goes here e.g. client.UploadValues(url, someNameValueCollectionObject)*/
}
using (va