Show / Hide Table of Contents

    Class DownloadFileTransferInformation

    Handles the information for file downloads

    Inheritance
    System.Object
    BaseFileTransferInformation
    DownloadFileTransferInformation
    Implements
    IDownloadFileInformation
    IFileTransferInformation
    System.IDisposable
    Inherited Members
    BaseFileTransferInformation.TempPath
    BaseFileTransferInformation.DfsHash
    BaseFileTransferInformation.CorrelationId
    BaseFileTransferInformation.FileOutputPath
    BaseFileTransferInformation.MaxChunk
    BaseFileTransferInformation.RecipientChannel
    BaseFileTransferInformation.RecipientId
    BaseFileTransferInformation.PeerId
    BaseFileTransferInformation.CancellationToken
    BaseFileTransferInformation.Initialised
    BaseFileTransferInformation.RandomAccessStream
    BaseFileTransferInformation.TimeSinceLastChunk
    BaseFileTransferInformation.ChunkIndicators
    BaseFileTransferInformation.IsExpired()
    BaseFileTransferInformation.ChunkIndicatorsTrue()
    BaseFileTransferInformation.CleanUp()
    BaseFileTransferInformation.Delete()
    BaseFileTransferInformation.Dispose()
    BaseFileTransferInformation.IsCompleted
    BaseFileTransferInformation.Dispose(Boolean)
    BaseFileTransferInformation.UpdateChunkIndicator(UInt32, Boolean)
    BaseFileTransferInformation.Expire()
    BaseFileTransferInformation.GetPercentage()
    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 Source

    DownloadFileTransferInformation(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 Source

    SetLength(UInt64)

    Declaration
    public void SetLength(ulong fileSize)
    Parameters
    Type Name Description
    System.UInt64 fileSize
    | Improve this Doc View Source

    WriteToStream(UInt32, Byte[])

    Declaration
    public void WriteToStream(uint chunk, byte[] fileBytes)
    Parameters
    Type Name Description
    System.UInt32 chunk
    System.Byte[] fileBytes

    Implements

    IDownloadFileInformation
    IFileTransferInformation
    System.IDisposable

    See Also

    BaseFileTransferInformation
    IDownloadFileInformation
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network