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