public OpticalReaderTask() { if (_instance == null) { _instance = this; FocusInterval = new TimeSpan(0, 0, 0, 0, 2500); } else { throw new Exception("Only one instance of OpticalReaderTask is supported at a time and another instance already exists."); } }
public void Dispose() { _instance = null; Processor = null; }