예제 #1
0
 /// <summary>
 /// Add or replace Unit Image by UnitId, draft
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// Id of the unit entity
 /// </param>
 /// <param name='file'>
 /// The image file to upload
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <object> PutImageAsyncByidfileAsync(this IUnits operations, int id, System.IO.Stream file, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.PutImageAsyncByidfileWithHttpMessagesAsync(id, file, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }