Beispiel #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='format'>
 /// </param>
 /// <param name='format1'>
 /// Specifies response output format
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> CreateAsync(this IImageAsBytesOperations operations, string format = default(string), string format1 = "json", CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(format, format1, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='format'>
 /// </param>
 /// <param name='format1'>
 /// Specifies response output format
 /// </param>
 public static object Post(this IImageAsBytesOperations operations, string format = default(string), string format1 = "json")
 {
     return(operations.PostAsync(format, format1).GetAwaiter().GetResult());
 }