Esempio n. 1
0
 public UsbDevice(
     string deviceId,
     IUsbInterfaceManager usbInterfaceManager,
     ILoggerFactory loggerFactory = null) : base(
         deviceId,
         loggerFactory,
         (loggerFactory ?? NullLoggerFactory.Instance).CreateLogger <UsbDevice>()) => UsbInterfaceManager = usbInterfaceManager ?? throw new ArgumentNullException(nameof(usbInterfaceManager));
Esempio n. 2
0
 /// <summary>
 /// TODO: Remove the tracer from the constructor. This will get passed to the handler so there's no need for it on the device itself.
 /// </summary>
 public UsbDevice(string deviceId, IUsbInterfaceManager usbInterfaceManager, ILogger logger, ITracer tracer) : base(deviceId, logger, tracer)
 {
     UsbInterfaceManager = usbInterfaceManager ?? throw new ArgumentNullException(nameof(usbInterfaceManager));
 }
Esempio n. 3
0
 public UsbDevice(
     string deviceId,
     IUsbInterfaceManager usbInterfaceManager) : this(deviceId, usbInterfaceManager, null)
 {
 }