public void Process() { if (_currentTask is null == false) { throw new InvalidOperationException("The instrument is already executing a task"); } _currentTask = _taskDispatcher.GetTask(); _instrument.Execute(_currentTask); }
public void Process() { var task = _taskDispatcher.GetTask(); _instrument.Execute(task); }
public void Process() { string task = taskDispatcher.GetTask(); instrument.Execute(task); }