Show / Hide Table of Contents

Class UwpDeviceHandler<T>

Inheritance
System.Object
UwpDeviceHandler<T>
UwpUsbInterfaceManager
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Device.Net.UWP
Assembly: Device.Net.UWP.dll
Syntax
public abstract class UwpDeviceHandler<T>
Type Parameters
Name Description
T

Constructors

UwpDeviceHandler(String, IDataReceiver, ILoggerFactory)

Declaration
protected UwpDeviceHandler(string deviceId, IDataReceiver dataReceiver, ILoggerFactory loggerFactory)
Parameters
Type Name Description
System.String deviceId
IDataReceiver dataReceiver
Microsoft.Extensions.Logging.ILoggerFactory loggerFactory

Fields

DataReceiver

Declaration
protected readonly IDataReceiver DataReceiver
Field Value
Type Description
IDataReceiver

Properties

ConnectedDevice

Declaration
protected T ConnectedDevice { get; }
Property Value
Type Description
T

ConnectedDeviceDefinition

Declaration
public ConnectedDeviceDefinition ConnectedDeviceDefinition { get; protected set; }
Property Value
Type Description
ConnectedDeviceDefinition

DeviceId

Declaration
public string DeviceId { get; }
Property Value
Type Description
System.String

IsInitialized

Declaration
public bool IsInitialized { get; }
Property Value
Type Description
System.Boolean

Logger

Declaration
protected ILogger<UwpDeviceHandler<T>> Logger { get; }
Property Value
Type Description
Microsoft.Extensions.Logging.ILogger<UwpDeviceHandler<T>>

LoggerFactory

Declaration
protected ILoggerFactory LoggerFactory { get; }
Property Value
Type Description
Microsoft.Extensions.Logging.ILoggerFactory

Methods

Close()

Declaration
public void Close()

Dispose()

Declaration
public virtual void Dispose()

FromIdAsync(String)

Declaration
protected abstract IAsyncOperation<T> FromIdAsync(string id)
Parameters
Type Name Description
System.String id
Returns
Type Description
Windows.Foundation.IAsyncOperation<T>

GetDeviceAsync(String, CancellationToken)

Declaration
protected async Task GetDeviceAsync(string id, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.String id
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task
In This Article
Back to top Generated by DocFX