C# Class NetMQ.Devices.ThreadedDeviceRunner

This subclass of DeviceRunner is the threaded version. Depending upon the threading model, either this or a DeviceRunner is used with a IDevice. The distinction is simply that it invokes the IDevice.Run method in a new Task.
Inheritance: NetMQ.Devices.DeviceRunner
显示文件 Open project: rLoopTeam/eng-software-ground-station

Public Methods

Method Description
Start ( ) : void

Start the device by calling it's Run method within a new Task.

ThreadedDeviceRunner ( IDevice device ) : System.Threading.Tasks

Create a new ThreadedDeviceRunner object that contains the given IDevice.

Method Details

Start() public method

Start the device by calling it's Run method within a new Task.
public Start ( ) : void
return void

ThreadedDeviceRunner() public method

Create a new ThreadedDeviceRunner object that contains the given IDevice.
public ThreadedDeviceRunner ( IDevice device ) : System.Threading.Tasks
device IDevice the IDevice that this ThreadedDeviceRunner will contain
return System.Threading.Tasks