Ejemplo n.º 1
0
        public override EngineCache CreateCacheForContext(PipExecutionContext context)
        {
            IArtifactContentCache contentCache = new CacheCoreArtifactContentCache(
                m_session,
                rootTranslator: m_rootTranslator);

            ITwoPhaseFingerprintStore twoPhase;

            if (IsFingerprintLookupEnabled)
            {
                twoPhase = new CacheCoreFingerprintStore(m_session);
            }
            else
            {
                twoPhase = new EmptyTwoPhaseFingerprintStore();
            }

            return(new EngineCache(contentCache, twoPhase));
        }
Ejemplo n.º 2
0
        public override EngineCache CreateCacheForContext()
        {
            IArtifactContentCache contentCache = new CacheCoreArtifactContentCache(
                m_session,
                rootTranslator: m_rootTranslator,
                replaceExistingFileOnMaterialization: m_replaceExistingFileOnMaterialization);

            ITwoPhaseFingerprintStore twoPhase;

            if (IsFingerprintLookupEnabled)
            {
                twoPhase = new CacheCoreFingerprintStore(m_session);
            }
            else
            {
                twoPhase = new EmptyTwoPhaseFingerprintStore();
            }

            return(new EngineCache(contentCache, twoPhase));
        }