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