Show / Hide Table of Contents

Interface IDataReceiver

Receives data from some source

Inherited Members
System.IDisposable.Dispose()
Namespace: Device.Net
Assembly: Device.Net.dll
Syntax
public interface IDataReceiver : IDisposable

Properties

HasData

Whether or not data has already been received that has not yet been read

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

Methods

DataReceived(TransferResult)

Manually set the data that appears at the source

Declaration
void DataReceived(TransferResult bytes)
Parameters
Type Name Description
TransferResult bytes

ReadAsync(CancellationToken)

Read from the source or wait for data to appear for reading

Declaration
Task<TransferResult> ReadAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task<TransferResult>
In This Article
Back to top Generated by DocFX