/// <summary> /// 初始化<see cref="Decoder{T}" />的新实例. /// </summary> /// <param name="id">The key.</param> /// <param name="capturer">The camera.</param> protected Decoder(string id, CapturableDevice <T> capturer) : base(id) { capturer.NotNull(); Capturer = capturer; DecodeLooper = new ActionLooper("解码循环", ThreadPriority.Highest, 10, Decode); DecodeLooper.Parent = this; }
protected SerialPortBus() { ReadLooper = new ActionLooper(string.Empty, ReadAndResolve); ReadLooper.Parent = this; }
protected IOBoardDevice() { ReadLooper = new ActionLooper(string.Empty, ReadChannels); ReadLooper.Parent = this; }