示例#1
0
 /// <summary>
 /// Upload a Code Package
 /// </summary>
 /// <remarks>
 /// http://dev.iron.io/worker/reference/api/#upload_or_update_a_code_package
 /// </remarks>
 public Task<HttpResponseMessage> Upload(Stream zipFile, WorkerOptions options)
 {
     return RestClient.Execute(_client.Config, new RestClientRequest
     {
         EndPoint = EndPoint,
         Method = HttpMethod.Post,
         Content = new MultipartFormDataContent
         {
             new JsonContent(options),
             new StreamContent(zipFile)
         }
     });
 }
示例#2
0
 /// <summary>
 /// Upload a Code Package
 /// </summary>
 /// <remarks>
 /// http://dev.iron.io/worker/reference/api/#upload_or_update_a_code_package
 /// </remarks>
 public Task <HttpResponseMessage> Upload(Stream zipFile, WorkerOptions options)
 {
     return(RestClient.Execute(_client.Config, new RestClientRequest
     {
         EndPoint = EndPoint,
         Method = HttpMethod.Post,
         Content = new MultipartFormDataContent
         {
             new JsonContent(options),
             new StreamContent(zipFile)
         }
     }));
 }