2 implementations of GetResultForRequest
Microsoft.Build (2)
BackEnd\Components\Caching\ResultsCache.cs (1)
113public BuildResult GetResultForRequest(BuildRequest request)
BackEnd\Components\Caching\ResultsCacheWithOverride.cs (1)
50public BuildResult GetResultForRequest(BuildRequest request)
26 references to GetResultForRequest
Microsoft.Build (1)
BackEnd\Components\Caching\ResultsCacheWithOverride.cs (1)
52var overrideResult = _override.GetResultForRequest(request);
Microsoft.Build.Engine.UnitTests (25)
BackEnd\RequestBuilder_Tests.cs (1)
399return Task<BuildResult>.FromResult(_cache.GetResultForRequest(entry.Request));
BackEnd\TargetBuilder_Tests.cs (24)
136Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Bar")); 137Assert.Equal(TargetResultCode.Success, resultsCache.GetResultForRequest(entry.Request)["Bar"].ResultCode); 159Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("SkipCondition")); 160Assert.Equal(TargetResultCode.Skipped, resultsCache.GetResultForRequest(entry.Request)["SkipCondition"].ResultCode); 193Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Foo")); 194Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Skip")); 195Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Error")); 196Assert.False(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Baz2")); 197Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Bar")); 198Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Baz")); 199Assert.Equal(TargetResultCode.Failure, resultsCache.GetResultForRequest(entry.Request)["DepError"].ResultCode); 200Assert.Equal(TargetResultCode.Success, resultsCache.GetResultForRequest(entry.Request)["Foo"].ResultCode); 201Assert.Equal(TargetResultCode.Success, resultsCache.GetResultForRequest(entry.Request)["Skip"].ResultCode); 202Assert.Equal(TargetResultCode.Failure, resultsCache.GetResultForRequest(entry.Request)["Error"].ResultCode); 203Assert.Equal(TargetResultCode.Success, resultsCache.GetResultForRequest(entry.Request)["Bar"].ResultCode); 204Assert.Equal(TargetResultCode.Success, resultsCache.GetResultForRequest(entry.Request)["Baz"].ResultCode); 1436Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("Build")); 1437Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("ProduceError1")); 1438Assert.False(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("ProduceError2")); 1439Assert.True(resultsCache.GetResultForRequest(entry.Request).HasResultsForTarget("_Error1")); 1441Assert.Equal(TargetResultCode.Failure, resultsCache.GetResultForRequest(entry.Request)["Build"].ResultCode); 1442Assert.Equal(TargetResultCode.Skipped, resultsCache.GetResultForRequest(entry.Request)["ProduceError1"].ResultCode); 1443Assert.Equal(TargetResultCode.Failure, resultsCache.GetResultForRequest(entry.Request)["_Error1"].ResultCode); 1467Assert.Throws<InternalErrorException>(() => resultsCache.GetResultForRequest(entry.Request));