/// <summary> /// Get complex types that extend others /// </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 <SiameseInner> GetValidAsync(this IInheritanceOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetValidWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Put complex types that extend others /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='complexBody'> /// Please put a siamese with id=2, name="Siameee", color=green, breed=persion, /// which hates 2 dogs, the 1st one named "Potato" with id=1 and food="tomato", /// and the 2nd one named "Tomato" with id=-1 and food="french fries". /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task PutValidAsync(this IInheritanceOperations operations, Siamese complexBody, CancellationToken cancellationToken = default(CancellationToken)) { await operations.PutValidWithHttpMessagesAsync(complexBody, null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// Put complex types that extend others /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='complexBody'> /// Please put a siamese with id=2, name="Siameee", color=green, breed=persion, /// which hates 2 dogs, the 1st one named "Potato" with id=1 and food="tomato", /// and the 2nd one named "Tomato" with id=-1 and food="french fries". /// </param> public static void PutValid(this IInheritanceOperations operations, Siamese complexBody) { Task.Factory.StartNew(s => ((IInheritanceOperations)s).PutValidAsync(complexBody), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// Get complex types that extend others /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static Siamese GetValid(this IInheritanceOperations operations) { return(Task.Factory.StartNew(s => ((IInheritanceOperations)s).GetValidAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Put complex types that extend others /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='complexBody'> /// Please put a siamese with id=2, name="Siameee", color=green, breed=persion, /// which hates 2 dogs, the 1st one named "Potato" with id=1 and food="tomato", /// and the 2nd one named "Tomato" with id=-1 and food="french fries". /// </param> public static void PutValid(this IInheritanceOperations operations, Siamese complexBody) { operations.PutValidAsync(complexBody).GetAwaiter().GetResult(); }
/// <summary> /// Get complex types that extend others /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static Siamese GetValid(this IInheritanceOperations operations) { return(operations.GetValidAsync().GetAwaiter().GetResult()); }
/// <summary> /// Put complex types that extend others /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='complexBody'> /// Please put a siamese with id=2, name="Siameee", color=green, /// breed=persion, which hates 2 dogs, the 1st one named "Potato" with id=1 /// and food="tomato", and the 2nd one named "Tomato" with id=-1 and /// food="french fries". /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task PutValidAsync(this IInheritanceOperations operations, SiameseInner complexBody, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { await operations.PutValidWithHttpMessagesAsync(complexBody, null, cancellationToken).ConfigureAwait(false); }