C# Class Emul8.Utilities.CachingFileFetcher

Exibir arquivo Open project: emul8/emul8

Public Methods

Method Description
CachingFileFetcher ( ) : System
CancelDownload ( ) : void
FetchFromUri ( Uri uri ) : string
GetFetchedFiles ( ) : Uri>.IDictionary
TryFetchFromUri ( Uri uri, string &fileName ) : bool

Private Methods

Method Description
ChecksumToText ( byte checksum ) : string
GenerateProgressMessage ( Uri uri, long bytesDownloaded = null, long totalBytes = null, int progressPercentage = null, double speed = null ) : string
GetBinaryFileName ( int id ) : string
GetCacheIndexLocation ( ) : string
GetCacheIndexLockLocation ( ) : string
GetCacheLocation ( ) : string
GetChecksumAndSizeFromUri ( Uri uri, long &size ) : byte[]
GetIndexFileStream ( ) : FileStream
GetSHA1Checksum ( string fileName ) : byte[]
ReadBinariesIndex ( ) : BinaryEntry>.Dictionary
ResetIndex ( ) : void
ResolveWebException ( WebException e ) : string
TryGetFromCache ( Uri uri, string &fileName ) : bool
UpdateInCache ( Uri uri, string withFile ) : bool
Verify ( string fileName, BinaryEntry entry ) : bool
WriteBinariesIndex ( BinaryEntry>.Dictionary index ) : void

Method Details

CachingFileFetcher() public method

public CachingFileFetcher ( ) : System
return System

CancelDownload() public method

public CancelDownload ( ) : void
return void

FetchFromUri() public method

public FetchFromUri ( Uri uri ) : string
uri System.Uri
return string

GetFetchedFiles() public method

public GetFetchedFiles ( ) : Uri>.IDictionary
return Uri>.IDictionary

TryFetchFromUri() public method

public TryFetchFromUri ( Uri uri, string &fileName ) : bool
uri System.Uri
fileName string
return bool