/// <inheritdoc />
 internal override void InternalSerialize(PipWriter writer)
 {
     Contract.Assume(IsInitialized, "SealDirectory pip construction must be completed by calling SetPartialSealId");
     writer.Write((byte)SealDirectoryType.CompositeSharedOpaqueDirectory);
     writer.Write(Directory);
     writer.WriteReadOnlyList(ComposedDirectories, (w, v) => w.Write(v));
     writer.Write(Provenance);
     writer.Write(Tags, (w, v) => w.Write(v));
 }
Example #2
0
 /// <inheritdoc />
 internal override void InternalSerialize(PipWriter writer)
 {
     Contract.Assume(IsInitialized, "SealDirectory pip construction must be completed by calling SetPartialSealId");
     writer.Write((byte)SealDirectoryType.CompositeSharedOpaqueDirectory);
     writer.Write(Directory);
     writer.WriteReadOnlyList(ComposedDirectories, (w, v) => w.Write(v));
     writer.Write(Provenance);
     writer.Write(Tags, (w, v) => w.Write(v));
     if (m_contentFilter != null)
     {
         writer.Write(true);
         writer.Write((byte)m_contentFilter.Value.Kind);
         writer.Write(m_contentFilter.Value.Regex);
     }
     else
     {
         writer.Write(false);
     }
 }