Class TemporaryDataFactory
Factory to create ITemporaryData objects.
Implements
Inherited Members
Namespace: FubarDev.FtpServer.BackgroundTransfer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class TemporaryDataFactory : ITemporaryDataFactory
Constructors
| Improve this Doc View SourceTemporaryDataFactory()
Initializes a new instance of the TemporaryDataFactory class.
Declaration
public TemporaryDataFactory()
Methods
| Improve this Doc View SourceAddCreator(Int64, TemporaryDataFactory.CreateAsyncDelegate)
Adds a creator for the given minimum size.
Declaration
protected void AddCreator(long minimumSize, TemporaryDataFactory.CreateAsyncDelegate createAsyncDelegate)
Parameters
| Type | Name | Description |
|---|---|---|
| Int64 | minimumSize | The minimum size required to use the passed creation function. |
| TemporaryDataFactory.CreateAsyncDelegate | createAsyncDelegate | The creation function when the expected size exceeds the minimum size. |
CreateAsync(Stream, Nullable<Int64>, CancellationToken)
Declaration
public Task<ITemporaryData> CreateAsync(Stream input, long? expectedSize, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | input | |
| Nullable<Int64> | expectedSize | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<ITemporaryData> |