Class MemoryTemporaryData
Stores the temporary data in a memory stream.
Inherited Members
Namespace: FubarDev.FtpServer.FileSystem
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class MemoryTemporaryData : ITemporaryData, IDisposable
Remarks
This is not recommended in a production environment.
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()
Dispose(Boolean)
Dispose the object.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| Boolean | disposing | when called from the Dispose() function.
|
FillAsync(Stream, CancellationToken)
Copies the stream data into the temporary data store.
Declaration
public Task FillAsync(Stream stream, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | stream | The data to copy. |
| CancellationToken | cancellationToken | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task | The task. |
OpenAsync()
Declaration
public Task<Stream> OpenAsync()
Returns
| Type | Description |
|---|---|
| Task<Stream> |