/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='klant'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> PostAsync(this IKlantServiceClient operations, Klant klant = default(Klant), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostWithHttpMessagesAsync(klant, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='klant'> /// </param> public static object Post(this IKlantServiceClient operations, Klant klant = default(Klant)) { return(Task.Factory.StartNew(s => ((IKlantServiceClient)s).PostAsync(klant), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }