Exemplo n.º 1
0
 /// <nodoc />
 internal override void InternalSerialize(PipWriter writer)
 {
     writer.Write(Source);
     writer.Write(Destination);
     writer.Write(Tags, (w, v) => w.Write(v));
     writer.Write(Provenance);
     writer.Write((byte)m_options);
 }
Exemplo n.º 2
0
 /// <inheritdoc />
 internal override void InternalSerialize(PipWriter writer)
 {
     writer.Write(Destination);
     writer.Write(Contents);
     writer.Write((byte)Encoding);
     writer.Write(Tags, (w, v) => w.Write(v));
     writer.Write(Provenance);
 }
 /// <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));
 }
Exemplo n.º 4
0
 /// <inheritdoc />
 internal override void InternalSerialize(PipWriter writer)
 {
     writer.Write(Module);
     writer.Write(Identity);
     writer.Write(Version);
     Location.Serialize(writer);
     writer.Write(ResolverKind);
     writer.Write(ResolverName);
 }
Exemplo n.º 5
0
 /// <nodoc />
 internal void Serialize(PipWriter writer)
 {
     Contract.Requires(writer != null);
     writer.Write(Name);
     if (Name.IsValid)
     {
         writer.Write(Value);
         writer.Write(IsPassThrough);
     }
 }
Exemplo n.º 6
0
 /// <inheritdoc />
 internal override void InternalSerialize(PipWriter writer)
 {
     Contract.Assume(IsInitialized, "SealDirectory pip construction must be completed by calling SetPartialSealId");
     writer.Write((byte)SealDirectoryType.SealDirectory);
     writer.Write(Directory);
     writer.Write(Contents, (w, v) => w.Write(v));
     writer.Write(OutputDirectoryContents, (w, v) => w.Write(v));
     writer.Write((byte)Kind);
     writer.Write(Provenance);
     writer.Write(Tags, (w, v) => w.Write(v));
     writer.Write(Patterns, (w, v) => w.Write(v));
     writer.Write(Scrub);
 }
Exemplo n.º 7
0
        internal void Serialize(PipWriter pipWriter)
        {
            Contract.Requires(pipWriter != null);

            pipWriter.Write(Name);
            pipWriter.WriteCompact(Value);
            pipWriter.WriteCompact(Limit);
        }
 /// <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);
     }
     writer.Write((byte)CompositionActionKind);
 }
Exemplo n.º 9
0
        internal void Serialize(PipWriter pipWriter)
        {
            Contract.Requires(pipWriter != null);

            pipWriter.Write(SemiStableHash);
            pipWriter.Write(ModuleId);
            pipWriter.Write(ModuleName);
            pipWriter.Write(OutputValueSymbol);
            pipWriter.Write(Token);
            pipWriter.WriteCompact(QualifierId.Id);
            pipWriter.Write(Usage);
        }
Exemplo n.º 10
0
        internal void Serialize(PipWriter writer)
        {
            Contract.Requires(writer != null);

            writer.Write(m_entriesStringId);
            if (m_entriesStringId.IsValid)
            {
                HeaderEntry.Serialize(writer);
            }
            else
            {
                writer.WriteCompact(Entries.Count);
                if (Entries.Count > 0)
                {
                    HeaderEntry.Serialize(writer);
                    foreach (var e in Entries)
                    {
                        e.Serialize(writer);
                    }
                }
            }
        }
Exemplo n.º 11
0
 /// <nodoc />
 internal void Serialize(PipWriter writer)
 {
     writer.Write(IpcMonikerId);
     ClientConfig.Serialize(IpcClientConfig, writer);
 }
Exemplo n.º 12
0
 /// <inheritdoc />
 internal override void InternalSerialize(PipWriter writer)
 {
     writer.Write(Artifact);
 }
Exemplo n.º 13
0
 internal void Serialize(PipWriter writer)
 {
     Contract.Requires(writer != null);
     writer.Write((byte)PathRenderingOption);
 }
Exemplo n.º 14
0
 /// <inheritdoc />
 internal override void InternalSerialize(PipWriter writer)
 {
     writer.Write(SpecFile);
     writer.Write(DefinitionLocation);
     writer.Write(OwningModule);
 }
Exemplo n.º 15
0
        internal override void InternalSerialize(PipWriter writer)
        {
            var hasProvenance = Provenance != null;

            writer.Write(hasProvenance);
            IpcInfo.Serialize(writer);
            writer.Write(MessageBody);
            writer.Write(OutputFile);
            writer.Write(ServicePipDependencies, (w, v) => ((PipWriter)w).Write(v));
            writer.Write(FileDependencies, (w, v) => w.Write(v));
            writer.Write(DirectoryDependencies, (w, v) => w.Write(v));
            writer.Write(LazilyMaterializedDependencies, (w, v) => w.Write(v));
            writer.Write(Tags, (w, v) => w.Write(v));
            writer.Write(IsServiceFinalization);
            writer.Write(MustRunOnMaster);
            if (hasProvenance)
            {
                writer.Write(Provenance);
            }
        }
Exemplo n.º 16
0
 /// <inheritdoc />
 internal override void InternalSerialize(PipWriter writer)
 {
     writer.Write(Executable);
     writer.Write(WorkingDirectory);
     writer.Write(Arguments);
     writer.Write(ResponseFile);
     writer.Write(ResponseFileData);
     writer.Write(EnvironmentVariables, (w, v) => ((PipWriter)w).Write(v));
     StandardInput.InternalSerialize(writer);
     writer.Write(StandardOutput);
     writer.Write(StandardError);
     writer.Write(StandardDirectory);
     writer.Write(WarningTimeout, (w, value) => w.Write(value));
     writer.Write(Timeout, (w, value) => w.Write(value));
     writer.Write(Dependencies, (w, v) => w.Write(v));
     writer.Write(FileOutputs, (w, v) => w.Write(v));
     writer.Write(DirectoryDependencies, (w, v) => w.Write(v));
     writer.Write(DirectoryOutputs, (w, v) => w.Write(v));
     writer.Write(OrderDependencies, (w, v) => ((PipWriter)w).Write(v));
     writer.Write(UntrackedPaths, (w, v) => w.Write(v));
     writer.Write(UntrackedScopes, (w, v) => w.Write(v));
     writer.Write(Tags, (w, v) => w.Write(v));
     writer.Write(SuccessExitCodes, (w, v) => w.Write(v));
     writer.Write(Semaphores, (w, v) => ((PipWriter)w).Write(v));
     writer.Write(Provenance);
     writer.Write(ToolDescription);
     writer.Write(AdditionalTempDirectories, (w, v) => w.Write(v));
     writer.Write(WarningRegex);
     writer.Write(ErrorRegex);
     writer.Write(UniqueOutputDirectory);
     writer.Write(UniqueRedirectedDirectoryRoot);
     writer.Write(TempDirectory);
     writer.Write((byte)ProcessOptions);
     writer.Write(ServiceInfo, ServiceInfo.InternalSerialize);
     writer.Write(RetryExitCodes, (w, v) => w.Write(v));
     writer.Write(AllowedSurvivingChildProcessNames, (w, v) => w.Write(v));
     writer.Write(NestedProcessTerminationTimeout, (w, t) => w.Write(t));
     writer.Write((byte)ProcessAbsentPathProbeInUndeclaredOpaquesMode);
     writer.Write((byte)DoubleWritePolicy);
     writer.Write((byte)ContainerIsolationLevel);
 }
Exemplo n.º 17
0
 /// <inheritdoc />
 internal override void InternalSerialize(PipWriter writer)
 {
     writer.Write(Symbol);
     writer.Write(Qualifier);
     writer.Write(LocationData);
 }