public void Init() { this._dataDriver = new DriverDataAccessor(new ModbusDataDriver("127.0.0.1", 4444)); this._priorityQueue = new PriorityQueueCommandProcessor(this._dataDriver); this._priorityQueue.Initialize(); Console.WriteLine("Start"); this._priorityQueue.Start(); }
public void Dispose() { this._dataDriver = null; if (this._priorityQueue != null) { this._priorityQueue.Dispose(); } this._priorityQueue = null; }