Ejemplo n.º 1
0
        /// <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;
        }
Ejemplo n.º 2
0
 protected SerialPortBus()
 {
     ReadLooper        = new ActionLooper(string.Empty, ReadAndResolve);
     ReadLooper.Parent = this;
 }
Ejemplo n.º 3
0
 protected IOBoardDevice()
 {
     ReadLooper        = new ActionLooper(string.Empty, ReadChannels);
     ReadLooper.Parent = this;
 }