Class TempFileTemporaryData
Creates a temporary file to store the data.
Inherited Members
Namespace: FubarDev.FtpServer.BackgroundTransfer
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class TempFileTemporaryData : ITemporaryData, IDisposable
Constructors
| Improve this Doc View SourceTempFileTemporaryData()
Initializes a new instance of the TempFileTemporaryData class.
Declaration
public TempFileTemporaryData()
Properties
| Improve this Doc View SourceSize
Declaration
public long Size { get; }
Property Value
| Type | Description |
|---|---|
| Int64 |
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()
FillAsync(Stream, CancellationToken)
Fills the temporary file with the data from the input stream.
Declaration
public Task FillAsync(Stream input, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | input | The input stream. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |
OpenAsync()
Declaration
public Task<Stream> OpenAsync()
Returns
| Type | Description |
|---|---|
| Task<Stream> |