/// <summary> /// Product Types /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='responseCode'> /// The desired returned status code /// </param> /// <param name='product'> /// The only parameter /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Product> GetProductAsync(this ISwaggerDateTimeOffsetClient operations, string responseCode = default(string), Product product = default(Product), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetProductWithHttpMessagesAsync(responseCode, product, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Product Types /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='responseCode'> /// The desired returned status code /// </param> /// <param name='product'> /// The only parameter /// </param> public static Product PutProduct(this ISwaggerDateTimeOffsetClient operations, string responseCode = default(string), Product product = default(Product)) { return(System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerDateTimeOffsetClient)s).PutProductAsync(responseCode, product), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Product Types /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='responseCode'> /// The desired returned status code /// </param> /// <param name='product'> /// The only parameter /// </param> public static Product PutProduct(this ISwaggerDateTimeOffsetClient operations, string responseCode = default(string), Product product = default(Product)) { return(operations.PutProductAsync(responseCode, product).GetAwaiter().GetResult()); }