/// <summary> /// Initializes a new instance of the <see cref="TestUsbDeviceWatcher"/> class. /// </summary> /// <param name="marshalWrapper"> /// The marshal Wrapper. /// </param> /// <param name="usbDeviceNotificationFactory"> /// The usb Device Notification Factory. /// </param> /// <param name="usbForm"> /// The usb form. /// </param> /// <param name="guid"> /// The guid. /// </param> public TestUsbDeviceWatcher( IMarshalWrapper marshalWrapper, IUsbDeviceNotificationFactory usbDeviceNotificationFactory, IUsbForm usbForm, Guid guid) : base(marshalWrapper, usbDeviceNotificationFactory, usbForm, guid) { }
/// <summary> /// Initializes a new instance of the <see cref="UsbDeviceWatcher"/> class. /// </summary> /// <param name="marshalWrapper"> /// The marshal Wrapper. /// </param> /// <param name="usbDeviceNotificationFactory"> /// The usb device notification factory. /// </param> /// <param name="usbForm"> /// The usb form. /// </param> /// <param name="guid"> /// The guid. /// </param> public UsbDeviceWatcher(IMarshalWrapper marshalWrapper, IUsbDeviceNotificationFactory usbDeviceNotificationFactory, IUsbForm usbForm, Guid guid) { _marshalWrapper = marshalWrapper; _usbDeviceNotificationFactory = usbDeviceNotificationFactory; _usbForm = usbForm; DeviceGuid = guid; RegisteredCreatedHandle = null; _observable = ConnectableObservable().RefCount(); }