/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <string> > ApiValuesGetAsync(this IInfoClimaClient operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ApiValuesGetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> public static string ApiValuesByIdGet(this IInfoClimaClient operations, int id) { return(Task.Factory.StartNew(s => ((IInfoClimaClient)s).ApiValuesByIdGetAsync(id), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <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 ApiValuesPostAsync(this IInfoClimaClient operations, string value = default(string), CancellationToken cancellationToken = default(CancellationToken)) { await operations.ApiValuesPostWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// </param> public static void ApiValuesPost(this IInfoClimaClient operations, string value = default(string)) { Task.Factory.StartNew(s => ((IInfoClimaClient)s).ApiValuesPostAsync(value), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static IList <WeatherForecast> ApiSampleDataWeatherForecastsGet(this IInfoClimaClient operations) { return(Task.Factory.StartNew(s => ((IInfoClimaClient)s).ApiSampleDataWeatherForecastsGetAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ApiValuesByIdDeleteAsync(this IInfoClimaClient operations, int id, CancellationToken cancellationToken = default(CancellationToken)) { await operations.ApiValuesByIdDeleteWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false); }