Example #1
0
 /// <summary>
 /// Creates a StockService.
 /// </summary>
 /// <param name="entityQuerySource">EntityQuerySource to run queries against the persistent storage.</param>
 /// <param name="entityRepositoryFactory">EntityRepositoryFactory to make changes to the persistent storage.</param>
 /// <param name="accountTransactionsAggregator"></param>
 /// <param name="stockInfoService"></param>
 public StockService(IEntityQuerySource entityQuerySource, IEntityRepositoryFactory entityRepositoryFactory, AccountTransactionsAggregator accountTransactionsAggregator, IStockInfoService stockInfoService)
 {
     _entityQuerySource             = entityQuerySource;
     _entityRepositoryFactory       = entityRepositoryFactory;
     _stockInfoService              = stockInfoService;
     _accountTransactionsAggregator = accountTransactionsAggregator;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StockInfoGrabSchedule" /> class.
 /// </summary>
 /// <param name="grabInfoService">grab stock info service</param>
 /// <param name="infoService">stock info service</param>
 /// <param name="grabService">grab service</param>
 /// <param name="service">stock service</param>
 /// <param name="logger">logger of stock grab schedule</param>
 public StockInfoGrabSchedule(IStockInfoGrabService grabInfoService,
                              IStockInfoService infoService,
                              IStockGrabService grabService,
                              IStockService service,
                              ILogger <StockInfoGrabSchedule> logger)
 {
     _infoService     = infoService;
     _infoGrabService = grabInfoService;
     _service         = service;
     _grabService     = grabService;
     _logger          = logger;
 }
 public StockQuoteHub(IServiceScopeFactory scopeFactor, IStockInfoService stockInfoService)
 {
     _scopeFactory     = scopeFactor;
     _stockInfoService = stockInfoService;
 }
Example #4
0
 public StockInfoController(IStockInfoService stockInfoService)
 {
     _StockInfoService = stockInfoService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StockInfoController" /> class.
 /// </summary>
 /// <param name="logger">stock controller logger</param>
 /// <param name="service">stock service</param>
 public StockInfoController(ILogger <StockInfoController> logger, IStockInfoService service)
 {
     _service = service;
     _logger  = logger;
 }