예제 #1
0
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed

        private (byte[], IImmutableSet <string>) Extract(IPersistentRepresentation pr)
        {
            if (pr.Payload is Tagged tag)
            {
                return(_journalHelper.PersistentToBytes(pr.WithPayload(tag.Payload)), tag.Tags);
            }
            else
            {
                return(_journalHelper.PersistentToBytes(pr), ImmutableHashSet <string> .Empty);
            }
        }