Table of Contents

Interface IFileReceiverDescriptor

Namespace
SmarterLink.Core.FileTransfer
Assembly
SmarterLink.Core.dll

Represents the receiver side of an active MQTT file transfer. Use GetChunksAsync(CancellationToken) to stream the incoming file chunks. Dispose when the transfer is complete or aborted.

public interface IFileReceiverDescriptor : IFileTransferDescriptor, IDisposable
Inherited Members

Properties

Number of bytes received so far.

uint ReceivedSize { get; }

Property Value

uint

Total expected size of the file in bytes.

uint TotalSize { get; }

Property Value

uint

Methods

Streams the incoming file chunks as they arrive.

IAsyncEnumerable<byte[]> GetChunksAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

IAsyncEnumerable<byte[]>