コード例 #1
0
 private static string ProcessRackSpace(RackSpaceClient client)
 {
     HttpWebResponse response = (HttpWebResponse)client.HttpRequest.GetResponse();
     Stream stream = response.GetResponseStream();
     StreamReader reader = new StreamReader(stream);
     return reader.ReadToEnd();
 }
コード例 #2
0
 public static string Get(RackSpaceClient client)
 {
     client.Method = WebMethod.GET;
     return ProcessRackSpace(client);
 }
コード例 #3
0
 public static string Post(RackSpaceClient client)
 {
     client.Method = WebMethod.POST;
     return ProcessRackSpace(client);
 }