public void PostAsync(string userName, string password, string uri, Dictionary <string, string> parameters) { PostRequestBuilder builder = new PostRequestBuilder(); var request = builder.BuildRequest(userName, password, uri, parameters); //Don't bother waiting - if it is there, it is there Task.Factory.StartNew(() => ProcessRequest(request)); }
public HttpWebResponse Post(string userName, string password, string uri, Dictionary <string, string> parameters) { PostRequestBuilder builder = new PostRequestBuilder(); var request = builder.BuildRequest(userName, password, uri, parameters); //Wait for request to return before exiting return(ProcessRequest(request)); }