public StockCommandHandler( IStockGroupRepository stockGroupRepository, IEventBus eventBus, IStockExchangeService stockExchangeService, IWalletRepository walletRepository, ICustomEventStore eventStore, IStockGroupService stockGroupService) { _stockGroupRepository = stockGroupRepository; _eventBus = eventBus; _stockExchangeService = stockExchangeService; _walletRepository = walletRepository; _eventStore = eventStore; _stockGroupService = stockGroupService; }
static void Main(string[] args) { _stockExchangeService = new StockExchangeService(); int timertime; // Чтение списка кодов для котировки Console.WriteLine("Enter New Code or Press Q to exit"); //var array = new List<string>(); while (true) { string a = Console.ReadLine(); if (a == "q") { break; } quoteCodes.Add(a); } //Вывод списка котировок // Console.WriteLine("Array Code Quote:"); // for (int i = 0; i < quoteCodes.Count; i++) // { // Console.WriteLine(quoteCodes[i]); // } // Чтение интервала времени для запроса с Yohoo Console.WriteLine("Enter Time Period in second:"); var interval = Console.ReadLine(); timertime = Convert.ToInt16(interval); // Создание таймера с принимаемым интервалом в переменной timertime aTimer = new System.Timers.Timer(); aTimer.Interval = (timertime * 1000); // aTimer.Elapsed += OnTimedEvent; // Событие по истечению таймера. aTimer.AutoReset = false; // Повторить события таймера (true is the default) aTimer.Enabled = true; // Start the timer aTimer.Start(); Console.ReadKey(); }
public AandelenViewModel(IStockExchangeService stockExchangeService, IMapper mapper) { _mapper = mapper; _stockService = stockExchangeService; GetStockInfo("ABI.BR"); }
public WalletCommandHandler(IProjectionReader projectionReader, IEventRepository eventRepository, IStockExchangeService stockExchangeService) { _projectionReader = projectionReader; _eventRepository = eventRepository; _stockExchangeService = stockExchangeService; }
public CompanyController(IStockExchangeService service) { this.service = service; }
public StockExchangeController(IStockExchangeService _service) { service = _service; }
public StockExchangeController(IStockExchangeService service) { this.service = service; }
public CompanyCatalogQueueReader(IStockExchangeService service) { this.service = service; }
public UserStockExchangeController(IStockExchangeService stockExchangeService, IUserService userService) { this.userService = userService; this.stockExchangeService = stockExchangeService; }