Beispiel #1
0
 /// <inheritdoc />
 public Task <AddOrGetContentHashListResult> AddOrGetContentHashListAsync
 (
     Context context,
     StrongFingerprint strongFingerprint,
     ContentHashListWithDeterminism contentHashListWithDeterminism,
     CancellationToken cts,
     UrgencyHint urgencyHint
 )
 {
     return(MemoizationSession.AddOrGetContentHashListAsync(
                context, strongFingerprint, contentHashListWithDeterminism, cts, urgencyHint));
 }
        private void Deserialize(StreamingContext context)
        {
            {
                using var stream  = new MemoryStream(_strongFingerprint);
                using var reader  = new BuildXLReader(debug: false, stream, leaveOpen: false);
                StrongFingerprint = StrongFingerprint.Deserialize(reader);
            }

            {
                using var stream = new MemoryStream(_contentHashListWithDeterminism);
                using var reader = new BuildXLReader(debug: false, stream, leaveOpen: false);
                ContentHashListWithDeterminism = ContentHashListWithDeterminism.Deserialize(reader);
            }
        }