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