Class DownloadFileTransferInformation
Handles the information for file downloads
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Catalyst.Core.Lib.FileTransfer
Assembly: Catalyst.Core.Lib.dll
Syntax
public sealed class DownloadFileTransferInformation : BaseFileTransferInformation, IDownloadFileInformation, IFileTransferInformation, IDisposable
Constructors
| Improve this Doc View SourceDownloadFileTransferInformation(PeerId, PeerId, IChannel, ICorrelationId, String, UInt64)
Initializes a new instance of the DownloadFileTransferInformation class.
Declaration
public DownloadFileTransferInformation(PeerId peerId, PeerId recipientId, IChannel recipientChannel, ICorrelationId correlationGuid, string fileOutputPath, ulong fileSize)
Parameters
Type | Name | Description |
---|---|---|
PeerId | peerId | The peer identifier. |
PeerId | recipientId | The recipient identifier. |
IChannel | recipientChannel | The recipient channel. |
ICorrelationId | correlationGuid | The correlation unique identifier. |
System.String | fileOutputPath | The file output path. |
System.UInt64 | fileSize | Size of the file. |
Methods
| Improve this Doc View SourceSetLength(UInt64)
Declaration
public void SetLength(ulong fileSize)
Parameters
Type | Name | Description |
---|---|---|
System.UInt64 | fileSize |
WriteToStream(UInt32, Byte[])
Declaration
public void WriteToStream(uint chunk, byte[] fileBytes)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | chunk | |
System.Byte[] | fileBytes |
Implements
System.IDisposable