/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='code'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> Get1Async(this ISuffixes operations, string code, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.Get1WithHttpMessagesAsync(code, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='code'> /// </param> public static object Get1(this ISuffixes operations, string code) { return(operations.Get1Async(code).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static object Get(this ISuffixes operations) { return(operations.GetAsync().GetAwaiter().GetResult()); }