コード例 #1
0
 /// <summary>
 /// Creates an instance of <see cref="PipContentFingerprinter"/>.
 /// </summary>
 /// <remarks>
 /// <see cref="PipContentFingerprinter"/> will look up the content of pip dependencies
 /// (when fingerprinting that pip) via the given callback. The new instance is thread-safe
 /// and so note that the callback may be called concurrently.
 /// </remarks>
 public PipContentFingerprinter(
     PathTable pathTable,
     ContentHashLookup contentHashLookup,
     ExtraFingerprintSalts?extraFingerprintSalts = null,
     PathExpander pathExpander   = null,
     PipDataLookup pipDataLookup = null)
     : base(pathTable, contentHashLookup, extraFingerprintSalts, pathExpander, pipDataLookup)
 {
     Contract.Requires(pathTable != null);
     Contract.Requires(contentHashLookup != null);
 }
コード例 #2
0
        /// <summary>
        /// Creates an instance of <see cref="PipContentFingerprinter"/>.
        /// </summary>
        /// <remarks>
        /// <see cref="PipContentFingerprinter"/> will look up the content of pip dependencies
        /// (when fingerprinting that pip) via the given callback. The new instance is thread-safe
        /// and so note that the callback may be called concurrently.
        /// </remarks>
        public PipContentFingerprinter(
            PathTable pathTable,
            PipFragmentRenderer.ContentHashLookup contentHashLookup,
            ExtraFingerprintSalts?extraFingerprintSalts = null,
            PathExpander pathExpander   = null,
            PipDataLookup pipDataLookup = null,
            SourceChangeAffectedInputsLookup sourceChangeAffectedInputsLookup = null,
            StaticHashLookup staticHashLookup = null)
            : base(pathTable, contentHashLookup, extraFingerprintSalts, pathExpander, pipDataLookup, sourceChangeAffectedInputsLookup)
        {
            Contract.Requires(pathTable != null);
            Contract.Requires(contentHashLookup != null);

            StaticFingerprintLookup = staticHashLookup;
        }