Class UwpDeviceHandler<T>
Inheritance
System.Object
UwpDeviceHandler<T>
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()
Assembly: Device.Net.UWP.dll
Syntax
public abstract class UwpDeviceHandler<T>
Type Parameters
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
Properties
ConnectedDevice
Declaration
protected T ConnectedDevice { get; }
Property Value
ConnectedDeviceDefinition
Declaration
public ConnectedDeviceDefinition ConnectedDeviceDefinition { get; protected set; }
Property Value
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
LoggerFactory
Declaration
protected ILoggerFactory LoggerFactory { get; }
Property Value
| Type |
Description |
| Microsoft.Extensions.Logging.ILoggerFactory |
|
Methods
Close()
Declaration
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 |
|