wasStitchNET
/Repository/Tools.cs |
@@ -15,6 +15,7 @@ |
using wasSharp.Linq; |
using wasSharp.Web.Utilities; |
using wasSharpNET.Cryptography; |
using SHA1 = System.Security.Cryptography.SHA1; |
|
namespace wasStitchNET.Repository |
{ |
@@ -79,7 +80,8 @@ |
/// <param name="release">the release to list files for</param> |
/// <param name="timeout">the timeout connecting to the Stitch repository</param> |
/// <returns>a list of Corrade files contained in the repository</returns> |
public static IEnumerable<KeyValuePair<string, string>> GetReleaseFileHashes(string server, Version release, int timeout) |
public static IEnumerable<KeyValuePair<string, string>> GetReleaseFileHashes(string server, Version release, |
int timeout) |
{ |
try |
{ |
@@ -116,7 +118,7 @@ |
$"{release.Major}.{release.Minor}", |
STITCH_CONSTANTS.UPDATE_DATA_PATH |
})), |
o => System.Security.Cryptography.SHA1.Create().ToHex(client.Download(o.Href).Result)); |
o => SHA1.Create().ToHex(client.Download(o.Href).Result)); |
} |
} |
catch (wasDAVException ex) |
@@ -125,4 +127,4 @@ |
} |
} |
} |
} |
} |