/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <string> UploadFilesByPostAsync(this IAppendix operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UploadFilesByPostWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public FormationThree(Card[] pokers, IAppendix appendix) { Guard.ArrayLengthEqual(pokers, 3); Guard.IsEqual(pokers[0].WeightValue, pokers[1].WeightValue, pokers[2].WeightValue); if (appendix != null) { Guard.IsNotEqual(pokers[0].WeightValue, appendix.Weight); } _cards = pokers; _appendix = appendix; }
public FormationFour(Card[] pokers, IAppendix appendix1, IAppendix appendix2) { Guard.ArrayLengthEqual(pokers, 4); Guard.IsEqual(pokers[0].WeightValue, pokers[1].WeightValue, pokers[2].WeightValue, pokers[3].WeightValue); Guard.IsNotNull(appendix1); Guard.IsNotNull(appendix2); Guard.IsNotEqual(appendix1.Weight, appendix2.Weight); _appendix1 = appendix1; _appendix2 = appendix2; _cards = pokers; }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static string UploadFilesByPost(this IAppendix operations) { return(Task.Factory.StartNew(s => ((IAppendix)s).UploadFilesByPostAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }