static void TestUri(RequestMethod method, string uri, string postData) { var requestSetting = new RequestSetting(method, uri); requestSetting.PostData = Encoding.UTF8.GetBytes(postData); var requestState = new RequestState(); requestState.Setting = requestSetting; requestState.Completed += new EventHandler<RequestCompeleteEventArgs>(RequestCompleted); var request = new Request(); request.Send(requestState); }
static void TestUri(RequestMethod method, string uri) { var requestSetting = new RequestSetting(method, uri); var requestState = new RequestState(); requestState.Setting = requestSetting; requestState.Completed += new EventHandler<RequestCompeleteEventArgs>(RequestCompleted); var request = new Request(); request.Send(requestState); }