public TimedPollService(IInstrumentRequestService instrumentRequestService, IPositionRequestService positionRequestService, ILogger <TimedPollService> logger) : base() { _cancellationDictionary = new Dictionary <int, CancellationToken>(); _positionRequestService = positionRequestService; _instrumentRequestService = instrumentRequestService; _logger = logger; _timer = new System.Timers.Timer(); _timer.Interval = 5000000.0; _timer.Elapsed += _timer_Elapsed; _timer.AutoReset = true; //_timer.Start(); }
public CommandExecutionService(IPositionRequestService positionRequestService, IOrderRequestService orderRequestService, IPositionCache positionCache, IOrderCache orderCache, ICommandStore commandStore, ILogger <CommandExecutionService> logger) { _positionRequestService = positionRequestService; _orderRequestService = orderRequestService; _positionCache = positionCache; _orderCache = orderCache; _commandStore = commandStore; _logger = logger; }