Свойство | Тип | Описание | |
---|---|---|---|
ExecuteAndSquash | void | ||
StartDownloading | void |
Метод | Описание | |
---|---|---|
ComputeProgressIndicator ( long bytesWritten, long fileSize ) : int | ||
Dispose ( ) : void | ||
Downloader ( BufferManager bufferManager, ILargeFileDownloadParameters parameters, ConcurrentQueue |
||
ExpectedDownloadTimeInSeconds ( int chunkSizeInBytes ) : int | ||
GetChunkCount ( long fileSize, long chunkSize ) : int | ||
GetChunkSizeForCurrentChunk ( long fileSize, int maxChunkSize, int zeroBasedChunkNumber ) : int | ||
GetChunkStart ( int currentChunk, int maxChunkSize ) : long | ||
NeedToCheckForUnwrittenChunks ( ConcurrentStack |
||
Start ( ) : void | ||
Wait ( System.TimeSpan time ) : void | ||
Wait ( int time ) : void |
Метод | Описание | |
---|---|---|
ExecuteAndSquash ( System.Action a ) : void | ||
StartDownloading ( |
public static ComputeProgressIndicator ( long bytesWritten, long fileSize ) : int | ||
bytesWritten | long | |
fileSize | long | |
Результат | int |
public Downloader ( BufferManager bufferManager, ILargeFileDownloadParameters parameters, ConcurrentQueue |
||
bufferManager | BufferManager | |
parameters | ILargeFileDownloadParameters | |
writeQueue | ConcurrentQueue |
|
readStack | ConcurrentStack |
|
downloadThrottle | bool>.Func | |
expectedChunkTimeInSeconds | int | |
failureToken | ||
logger | Action |
|
cancellation | ||
clientFactory | ISimpleHttpGetByRangeClient>.Func | |
Результат | System |
public static ExpectedDownloadTimeInSeconds ( int chunkSizeInBytes ) : int | ||
chunkSizeInBytes | int | |
Результат | int |
public static GetChunkCount ( long fileSize, long chunkSize ) : int | ||
fileSize | long | |
chunkSize | long | |
Результат | int |
public static GetChunkSizeForCurrentChunk ( long fileSize, int maxChunkSize, int zeroBasedChunkNumber ) : int | ||
fileSize | long | |
maxChunkSize | int | |
zeroBasedChunkNumber | int | |
Результат | int |
public static GetChunkStart ( int currentChunk, int maxChunkSize ) : long | ||
currentChunk | int | |
maxChunkSize | int | |
Результат | long |
public static NeedToCheckForUnwrittenChunks ( ConcurrentStack |
||
readStack | ConcurrentStack |
|
lastWriteTime | System.DateTime | |
minutesToWait | int | |
Результат | bool |
public Wait ( System.TimeSpan time ) : void | ||
time | System.TimeSpan | |
Результат | void |