Show / Hide Table of Contents

    Class BaseFileTransferInformation

    Inheritance
    System.Object
    BaseFileTransferInformation
    DownloadFileTransferInformation
    UploadFileTransferInformation
    Implements
    IFileTransferInformation
    System.IDisposable
    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 class BaseFileTransferInformation : IFileTransferInformation, IDisposable

    Constructors

    | Improve this Doc View Source

    BaseFileTransferInformation(PeerId, PeerId, IChannel, ICorrelationId, String, UInt64)

    Initializes a new instance of the BaseFileTransferInformation class.

    Declaration
    protected BaseFileTransferInformation(PeerId peerId, PeerId recipientId, IChannel recipientChannel, ICorrelationId correlationId, string fileName, ulong fileSize)
    Parameters
    Type Name Description
    PeerId peerId

    The peer identifier

    PeerId recipientId

    The recipient identifier.

    IChannel recipientChannel

    The recipient channel.

    ICorrelationId correlationId

    The correlation unique identifier.

    System.String fileName

    Name of the file.

    System.UInt64 fileSize

    Size of the file.

    Properties

    | Improve this Doc View Source

    CancellationToken

    Declaration
    public CancellationToken CancellationToken { get; set; }
    Property Value
    Type Description
    System.Threading.CancellationToken
    | Improve this Doc View Source

    ChunkIndicators

    The chunk indicators

    Declaration
    protected bool[] ChunkIndicators { get; set; }
    Property Value
    Type Description
    System.Boolean[]
    | Improve this Doc View Source

    CorrelationId

    Declaration
    public ICorrelationId CorrelationId { get; set; }
    Property Value
    Type Description
    ICorrelationId
    | Improve this Doc View Source

    DfsHash

    Declaration
    public string DfsHash { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    FileOutputPath

    Declaration
    public string FileOutputPath { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Initialised

    Declaration
    public bool Initialised { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsCompleted

    Declaration
    public bool IsCompleted { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    MaxChunk

    Declaration
    public uint MaxChunk { get; set; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    PeerId

    Declaration
    public PeerId PeerId { get; set; }
    Property Value
    Type Description
    PeerId
    | Improve this Doc View Source

    RandomAccessStream

    Gets or sets the random access stream.

    Declaration
    protected Stream RandomAccessStream { get; set; }
    Property Value
    Type Description
    System.IO.Stream

    The random access stream.

    | Improve this Doc View Source

    RecipientChannel

    Declaration
    public IChannel RecipientChannel { get; set; }
    Property Value
    Type Description
    IChannel
    | Improve this Doc View Source

    RecipientId

    Declaration
    public PeerId RecipientId { get; set; }
    Property Value
    Type Description
    PeerId
    | Improve this Doc View Source

    TempPath

    Declaration
    public string TempPath { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    TimeSinceLastChunk

    The time since last chunk

    Declaration
    protected DateTime TimeSinceLastChunk { get; set; }
    Property Value
    Type Description
    System.DateTime

    Methods

    | Improve this Doc View Source

    ChunkIndicatorsTrue()

    Declaration
    public bool ChunkIndicatorsTrue()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    CleanUp()

    Declaration
    public void CleanUp()
    | Improve this Doc View Source

    Delete()

    Declaration
    public void Delete()
    | Improve this Doc View Source

    Dispose()

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    | Improve this Doc View Source

    Expire()

    Declaration
    public void Expire()
    | Improve this Doc View Source

    GetPercentage()

    Declaration
    public int GetPercentage()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    IsExpired()

    Declaration
    public bool IsExpired()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    UpdateChunkIndicator(UInt32, Boolean)

    Declaration
    public void UpdateChunkIndicator(uint chunkId, bool state)
    Parameters
    Type Name Description
    System.UInt32 chunkId
    System.Boolean state

    Implements

    IFileTransferInformation
    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network