Class BaseFileTransferInformation
Inheritance
System.Object
BaseFileTransferInformation
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 SourceBaseFileTransferInformation(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 SourceCancellationToken
Declaration
public CancellationToken CancellationToken { get; set; }
Property Value
Type | Description |
---|---|
System.Threading.CancellationToken |
ChunkIndicators
The chunk indicators
Declaration
protected bool[] ChunkIndicators { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean[] |
CorrelationId
Declaration
public ICorrelationId CorrelationId { get; set; }
Property Value
Type | Description |
---|---|
ICorrelationId |
DfsHash
Declaration
public string DfsHash { get; set; }
Property Value
Type | Description |
---|---|
System.String |
FileOutputPath
Declaration
public string FileOutputPath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Initialised
Declaration
public bool Initialised { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsCompleted
Declaration
public bool IsCompleted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxChunk
Declaration
public uint MaxChunk { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
PeerId
Declaration
public PeerId PeerId { get; set; }
Property Value
Type | Description |
---|---|
PeerId |
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. |
RecipientChannel
Declaration
public IChannel RecipientChannel { get; set; }
Property Value
Type | Description |
---|---|
IChannel |
RecipientId
Declaration
public PeerId RecipientId { get; set; }
Property Value
Type | Description |
---|---|
PeerId |
TempPath
Declaration
public string TempPath { get; }
Property Value
Type | Description |
---|---|
System.String |
TimeSinceLastChunk
The time since last chunk
Declaration
protected DateTime TimeSinceLastChunk { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Methods
| Improve this Doc View SourceChunkIndicatorsTrue()
Declaration
public bool ChunkIndicatorsTrue()
Returns
Type | Description |
---|---|
System.Boolean |
CleanUp()
Declaration
public void CleanUp()
Delete()
Declaration
public void Delete()
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Expire()
Declaration
public void Expire()
GetPercentage()
Declaration
public int GetPercentage()
Returns
Type | Description |
---|---|
System.Int32 |
IsExpired()
Declaration
public bool IsExpired()
Returns
Type | Description |
---|---|
System.Boolean |
UpdateChunkIndicator(UInt32, Boolean)
Declaration
public void UpdateChunkIndicator(uint chunkId, bool state)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | chunkId | |
System.Boolean | state |
Implements
System.IDisposable