public UsbDevice( string deviceId, IUsbInterfaceManager usbInterfaceManager, ILoggerFactory loggerFactory = null) : base( deviceId, loggerFactory, (loggerFactory ?? NullLoggerFactory.Instance).CreateLogger <UsbDevice>()) => UsbInterfaceManager = usbInterfaceManager ?? throw new ArgumentNullException(nameof(usbInterfaceManager));
/// <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)); }
public UsbDevice( string deviceId, IUsbInterfaceManager usbInterfaceManager) : this(deviceId, usbInterfaceManager, null) { }