Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }