C# Class DeploymentStager.FileVerification

Mostra file Open project: ALandFarAway/ALFA-Base-Resources Class Usage Examples

Public Methods

Method Description
GetSHA1Hash ( string filename ) : string
VerifyFile ( string filename, DependencyResource resource ) : bool
VerifyFile ( string filename, string sha1Hash, long filesize ) : bool

Method Details

GetSHA1Hash() public static method

public static GetSHA1Hash ( string filename ) : string
filename string
return string

VerifyFile() public static method

public static VerifyFile ( string filename, DependencyResource resource ) : bool
filename string
resource DependencyResource
return bool

VerifyFile() public static method

public static VerifyFile ( string filename, string sha1Hash, long filesize ) : bool
filename string
sha1Hash string
filesize long
return bool