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