Esempio n. 1
0
 /// <nodoc />
 public PipFragmentRenderer(
     PathTable pathTable,
     Func <string, string> monikerRenderer,
     ContentHashLookup hashLookup)
     : this(path => path.ToString(pathTable), pathTable.StringTable, monikerRenderer, hashLookup)
 {
     Contract.Requires(pathTable != null);
 }
Esempio n. 2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <remarks>
        /// Parameter <paramref name="hashLookup"/> is optional because file hashes are only known
        /// at build time, while it still makes sense to be able to render <see cref="PipData"/>
        /// at evaluation time (during pip graph construction).
        /// </remarks>
        public PipFragmentRenderer(
            Func <AbsolutePath, string> pathExpander,
            StringTable stringTable,
            Func <string, string> monikerRenderer,
            ContentHashLookup hashLookup = null)
        {
            Contract.Requires(pathExpander != null);
            Contract.Requires(stringTable != null);

            PathExpander       = pathExpander;
            StringTable        = stringTable;
            IpcMonikerRenderer = monikerRenderer;
            HashLookup         = hashLookup;
        }