/// <summary> /// Gets a pet from the store /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task GetAsync(this IPets operations, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Gets a pet from the store /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task GetAsync(this IPets operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false); }