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
ReceivedSize
Number of bytes received so far.
uint ReceivedSize { get; }
Property Value
TotalSize
Total expected size of the file in bytes.
uint TotalSize { get; }
Property Value
Methods
GetChunksAsync(CancellationToken)
Streams the incoming file chunks as they arrive.
IAsyncEnumerable<byte[]> GetChunksAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationToken