/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='names'> /// </param> /// <param name='body'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <ListResult> > PostAsync(this IHelloListOperations operations, string names = default(string), HelloList body = default(HelloList), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostWithHttpMessagesAsync(names, body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='names'> /// </param> public static IList <ListResult> Get(this IHelloListOperations operations, string names = default(string)) { return(operations.GetAsync(names).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='names'> /// </param> /// <param name='body'> /// </param> public static IList <ListResult> Post(this IHelloListOperations operations, string names = default(string), HelloList body = default(HelloList)) { return(operations.PostAsync(names, body).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='names'> /// </param> /// <param name='body'> /// </param> public static IList <ListResult> Create(this IHelloListOperations operations, IList <string> names = default(IList <string>), HelloList body = default(HelloList)) { return(operations.CreateAsync(names, body).GetAwaiter().GetResult()); }