/// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='symbol'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Stock> GetStockBySmybol1Async(this IQuotesClient operations, string symbol, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetStockBySmybol1WithHttpMessagesAsync(symbol, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static Stock GetStockBySmybol(this IQuotesClient operations)
 {
     return(operations.GetStockBySmybolAsync().GetAwaiter().GetResult());
 }
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='symbol'>
 /// </param>
 public static Stock GetStockBySmybol1(this IQuotesClient operations, string symbol)
 {
     return(operations.GetStockBySmybol1Async(symbol).GetAwaiter().GetResult());
 }
Пример #4
0
 public QuotesClientTests()
 {
     QuotesClient = Helper.GetAuthClient().Quotes;
 }