/// <summary> /// Adds new pet stylesin the store. Duplicates are allowed /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='petStyle'> /// Pet style to add to the store /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <int?> > AddPetStylesAsync(this ISequenceRequestResponseTest operations, IList <int?> petStyle, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.AddPetStylesWithHttpMessagesAsync(petStyle, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates new pet stylesin the store. Duplicates are allowed /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='petStyle'> /// Pet style to add to the store /// </param> public static IList <int?> UpdatePetStyles(this ISequenceRequestResponseTest operations, IList <int?> petStyle) { return(Task.Factory.StartNew(s => ((ISequenceRequestResponseTest)s).UpdatePetStylesAsync(petStyle), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Creates a new pet in the store. Duplicates are allowed /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='pets'> /// Pets to add to the store /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <Pet> > AddPetAsync(this ISequenceRequestResponseTest operations, IList <Pet> pets, CancellationToken cancellationToken = default(CancellationToken)) { var _result = await operations.AddPetWithHttpMessagesAsync(pets, null, cancellationToken).ConfigureAwait(false); return(_result.Body); }
/// <summary> /// Updates new pet stylesin the store. Duplicates are allowed /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='petStyle'> /// Pet style to add to the store /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <int?> > UpdatePetStylesAsync(this ISequenceRequestResponseTest operations, IList <int?> petStyle, CancellationToken cancellationToken = default(CancellationToken)) { HttpOperationResponse <IList <int?> > result = await operations.UpdatePetStylesWithHttpMessagesAsync(petStyle, null, cancellationToken).ConfigureAwait(false); return(result.Body); }
/// <summary> /// Updates new pet stylesin the store. Duplicates are allowed /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='petStyle'> /// Pet style to add to the store /// </param> public static IList <int?> UpdatePetStyles(this ISequenceRequestResponseTest operations, IList <int?> petStyle) { return(operations.UpdatePetStylesAsync(petStyle).GetAwaiter().GetResult()); }
/// <summary> /// Creates a new pet in the store. Duplicates are allowed /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='pets'> /// Pets to add to the store /// </param> public static IList <Pet> AddPet(this ISequenceRequestResponseTest operations, IList <Pet> pets) { return(operations.AddPetAsync(pets).GetAwaiter().GetResult()); }
/// <summary> /// Updates new pet stylesin the store. Duplicates are allowed /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='petStyle'> /// Pet style to add to the store /// </param> public static System.Collections.Generic.IList <int?> UpdatePetStyles(this ISequenceRequestResponseTest operations, System.Collections.Generic.IList <int?> petStyle) { return(System.Threading.Tasks.Task.Factory.StartNew(s => ((ISequenceRequestResponseTest)s).UpdatePetStylesAsync(petStyle), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Adds new pet stylesin the store. Duplicates are allowed /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='petStyle'> /// Pet style to add to the store /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <System.Collections.Generic.IList <int?> > AddPetStylesAsync(this ISequenceRequestResponseTest operations, System.Collections.Generic.IList <int?> petStyle, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.AddPetStylesWithHttpMessagesAsync(petStyle, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }