Пример #1
0
 /// <summary>
 /// Update an existing pet
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// Pet object that needs to be added to the store
 /// </param>
 public static void UpdatePet(this ISwaggerPetstore operations, Pet body = default(Pet))
 {
     operations.UpdatePetAsync(body).GetAwaiter().GetResult();
 }
Пример #2
0
 /// <summary>
 /// Add a new pet to the store
 /// </summary>
 /// <remarks>
 /// Adds a new pet to the store. You may receive an HTTP invalid input if your
 /// pet is invalid.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// Pet object that needs to be added to the store
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task AddPetAsync(this ISwaggerPetstore operations, Pet body = default(Pet), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.AddPetWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }