Пример #1
0
 /// <inheritdoc />
 public override async Task <RunnableFromCacheResult> CacheLookupAsync(
     ProcessRunnablePip runnablePip,
     PipExecutionState.PipScopeState state,
     CacheableProcess cacheableProcess)
 {
     using (OnPipExecutionStarted(runnablePip))
     {
         return(await PipExecutor.TryCheckProcessRunnableFromCacheAsync(runnablePip, state, cacheableProcess));
     }
 }
Пример #2
0
        /// <inheritdoc />
        public override async Task <(RunnableFromCacheResult, PipResultStatus)> CacheLookupAsync(
            ProcessRunnablePip runnablePip,
            PipExecutionState.PipScopeState state,
            CacheableProcess cacheableProcess)
        {
            using (OnPipExecutionStarted(runnablePip))
            {
                var cacheResult = await PipExecutor.TryCheckProcessRunnableFromCacheAsync(runnablePip, state, cacheableProcess);

                return(ValueTuple.Create(cacheResult, cacheResult == null ? PipResultStatus.Failed : PipResultStatus.Succeeded));
            }
        }