Exemplo n.º 1
0
        public async Task <ScriptKeyRecord> GetByChecksum(System.Int32 checksum)
        {
            ScriptKeyRecord lookup = new ScriptKeyRecord();

            lookup.checksum = checksum;
            var result = await scriptKeyRepository.GetRecord(lookup);

            return(result);
        }
Exemplo n.º 2
0
        public async Task <string> ResolveChecksum(System.UInt32 checksum, int?compressedByteSize = null)
        {
            if (compressedByteSize.HasValue)
            {
                var rec = await ResolveCompressedKey(checksum, compressedByteSize.Value);

                if (rec != null && rec.name != null)
                {
                    return(rec.name);
                }
            }
            else
            {
                var record = new Repository.ScriptKeyRecord();
                record.checksum = (System.Int32)checksum;
                record          = await scriptKeyRepository.GetRecord(record);

                return(record?.name);
            }
            return(null);
        }