private static string GetChecksumKey(SourceHashAlgorithm algorithm)
        {
            switch (algorithm)
            {
            case SourceHashAlgorithm.Sha1:
                return(IndexingUtilities.GetChecksumKey(ChecksumAlgorithm.Sha1));

            case SourceHashAlgorithm.Sha256:
                return(IndexingUtilities.GetChecksumKey(ChecksumAlgorithm.Sha256));

            default:
                return(null);
            }
        }
Esempio n. 2
0
 public static SymbolId CreateFromId(string id)
 {
     // return new SymbolId(id);
     return(new SymbolId(IndexingUtilities.ComputeSymbolUid(id)));
 }