Interface ITemporaryDataFactory
Factory for temporary data objects.
Namespace: FubarDev.FtpServer.BackgroundTransfer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public interface ITemporaryDataFactory
Methods
| Improve this Doc View SourceCreateAsync(Stream, Nullable<Int64>, CancellationToken)
Creates a temporary data object for data with the expected size.
Declaration
Task<ITemporaryData> CreateAsync(Stream input, long? expectedSize, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | input | The stream containing the data. |
| Nullable<Int64> | expectedSize | The expected data size. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<ITemporaryData> | The created temporary data object. |