예제 #1
0
        public MainService(ITargetCommandProcessor commandProcessor)
        {
            if (commandProcessor == null)
                throw new ArgumentNullException("commandProcessor");
            _commandProcessor = commandProcessor;

            _timer = new Timer(500);
            _timer.AutoReset = false;
            _timer.Elapsed += _timer_Elapsed;
        }
예제 #2
0
 public MainService(ITargetCommandProcessor commandProcessor)
 {
     _commandProcessor = commandProcessor ?? throw new ArgumentNullException(nameof(commandProcessor));
 }