diff --git a/Build/NuSpecs/Device.Net.LibUsb.nuspec b/Build/NuSpecs/Device.Net.LibUsb.nuspec index 2461dac3..d27ce54a 100644 --- a/Build/NuSpecs/Device.Net.LibUsb.nuspec +++ b/Build/NuSpecs/Device.Net.LibUsb.nuspec @@ -6,10 +6,10 @@
public ConnectedDeviceDefinition(string deviceId, DeviceType deviceType, uint? vendorId = default(uint? ), uint? productId = default(uint? ), string productName = null, string manufacturer = null, string serialNumber = null, ushort? usage = default(ushort? ), ushort? usagePage = default(ushort? ), ushort? versionNumber = default(ushort? ), int? writeBufferSize = default(int? ), int? readBufferSize = default(int? ), string label = null, Guid? classGuid = default(Guid? ))
+ public ConnectedDeviceDefinition(string deviceId, DeviceType deviceType, uint? vendorId = null, uint? productId = null, string productName = null, string manufacturer = null, string serialNumber = null, ushort? usage = null, ushort? usagePage = null, ushort? versionNumber = null, int? writeBufferSize = null, int? readBufferSize = null, string label = null, Guid? classGuid = null)
The device Id or path specific to the platform for the device
@@ -270,13 +255,8 @@The type of device interface
@@ -301,13 +281,8 @@Freeform tag to be used as needed
@@ -332,13 +307,8 @@Name of the device's manufacturer
@@ -363,13 +333,8 @@Product Id
@@ -394,13 +359,8 @@The name of the device product according to the Manufacturer
@@ -425,13 +385,8 @@The maximum size of data to be read from the device
@@ -456,13 +411,8 @@Unique serial number of the physical device
@@ -487,13 +437,8 @@Used to further filter down device definitions on some platforms
@@ -548,13 +488,8 @@Vendor ID
@@ -579,13 +514,8 @@Device version number
@@ -610,13 +540,8 @@The maximum size of data to be written to the device
@@ -643,13 +568,8 @@public virtual void Dispose()
public static ConnectedDeviceDefinition GetDeviceDefinitionFromWindowsDeviceId(string deviceId, DeviceType deviceType, ILogger logger, Guid? classGuid = default(Guid? ))
+ public static ConnectedDeviceDefinition GetDeviceDefinitionFromWindowsDeviceId(string deviceId, DeviceType deviceType, ILogger logger, Guid? classGuid = null)
public Task<TransferResult> WriteAndReadAsync(byte[] writeBuffer, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task<TransferResult> WriteAndReadAsync(byte[] writeBuffer, CancellationToken cancellationToken = default(CancellationToken))
Creates a new IDeviceFactory that contains with the existing deviceFactories
@@ -222,20 +212,15 @@public static Task<IDevice> ConnectFirstAsync(this IDeviceFactory deviceFactory, ILogger logger = null)
+ public static async Task<IDevice> ConnectFirstAsync(this IDeviceFactory deviceFactory, ILogger logger = null)
public static Task<IDevice> GetFirstDeviceAsync(this IDeviceFactory deviceFactory)
+ public static async Task<IDevice> GetFirstDeviceAsync(this IDeviceFactory deviceFactory)
Compares a ConnectedDeviceDefinition with a FilterDeviceDefinition
@@ -387,12 +362,6 @@Constructs a DeviceFactory
@@ -170,13 +165,8 @@Handles connecting to and disconnecting from a set of potential devices by their definition
@@ -132,7 +127,7 @@public DeviceListener(IDeviceFactory deviceFactory, int? pollMilliseconds, ILoggerFactory loggerFactory)
+ public DeviceListener(IDeviceFactory deviceFactory, int? pollMilliseconds = 1000, ILoggerFactory loggerFactory = null)
public Task CheckForDevicesAsync(CancellationToken cancellationToken = default(CancellationToken))
+ public async Task CheckForDevicesAsync(CancellationToken cancellationToken = default(CancellationToken))
public void Dispose()
Starts the polling for devices if polling is being used.
@@ -273,13 +248,8 @@public void Start()