Beispiel #1
0
 public CacheCoreFingerprintStoreTests(ITestOutputHelper output)
     : base(output)
 {
     Context          = BuildXLContext.CreateInstanceForTesting();
     FingerprintStore = new CacheCoreFingerprintStore(Session);
     ContentCache     = new CacheCoreArtifactContentCache(Session, rootTranslator: null);
 }
Beispiel #2
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));
        }
Beispiel #3
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));
        }