コード例 #1
0
ファイル: StocksHub.cs プロジェクト: aaronmontgomery/Stocks
 public async Task GetPriceHistoryAsync(object tickerTableSelectedRowData, object priceHistoryDateRange)
 {
     Entities.Ticker ticker = JsonConvert.DeserializeObject <Entities.Ticker>(tickerTableSelectedRowData.ToString());
     _logger.LogInformation($"GetPriceHistoryAsync {ticker.Symbol} {Context.ConnectionId}");
     DateTimeRange dateTimeRange = JsonConvert.DeserializeObject <DateTimeRange>(priceHistoryDateRange.ToString());
     await Clients.Caller.SendCoreAsync("drawPriceHistory", new object[]
     {
         CompiledQueries.PriceHistory(ticker.Symbol, dateTimeRange),
         ticker
     });
 }