/// <summary> /// Test explicitly optional complex object. Please put a valid class-wrapper /// with 'value' = null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalClassPropertyAsync(this IExplicitModel operations, Product value = default(Product), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.PostOptionalClassPropertyWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Test explicitly optional complex object. Please put a valid class-wrapper /// with 'value' = null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='bodyParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PostOptionalClassPropertyAsync(this IExplicitModel operations, ClassOptionalWrapper bodyParameter = default(ClassOptionalWrapper), CancellationToken cancellationToken = default(CancellationToken)) { await operations.PostOptionalClassPropertyWithHttpMessagesAsync(bodyParameter, null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// Test explicitly optional complex object. Please put a valid class-wrapper /// with 'value' = null. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task PostOptionalClassPropertyAsync(this IExplicitModel operations, Product value = default(Product), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { await operations.PostOptionalClassPropertyWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false); }