コード例 #1
0
        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.");
            }
        }
コード例 #2
0
        public void Dispose()
        {
            _instance = null;

            Processor = null;
        }