Table of Contents

Delegate RetryableCopyToStreamTask.SourceStreamFactory

Namespace
Hi3Helper.Plugin.Core.Utility
Assembly
Hi3Helper.Plugin.Core.dll

A delegate which creates a source Stream based on the last position of the download.

public delegate Task<Stream> RetryableCopyToStreamTask.SourceStreamFactory(long lastBytesPosition, CancellationToken token = default)

Parameters

lastBytesPosition long

The last position of the bytes downloaded.

token CancellationToken

The cancellation token for creating Stream instance.

Returns

Task<Stream>

A source Stream to copy from.