57 instantiations of BuildRequestEntry
Microsoft.Build (1)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
373
BuildRequestEntry entry = new
BuildRequestEntry
(request, _configCache[request.ConfigurationId]);
Microsoft.Build.Engine.UnitTests (56)
BackEnd\BuildRequestEntry_Tests.cs (11)
26
BuildRequestEntry entry = new
BuildRequestEntry
(request, config);
37
BuildRequestEntry entry = new
BuildRequestEntry
(null!, null!);
46
BuildRequestEntry entry = new
BuildRequestEntry
(request, config);
95
BuildRequestEntry entry = new
BuildRequestEntry
(request, config);
117
BuildRequestEntry entry = new
BuildRequestEntry
(request, config);
146
BuildRequestEntry entry = new
BuildRequestEntry
(request, config);
184
BuildRequestEntry entry = new
BuildRequestEntry
(request, config);
200
BuildRequestEntry entry = new
BuildRequestEntry
(request, config);
217
BuildRequestEntry entry = new
BuildRequestEntry
(request, config);
240
BuildRequestEntry entry = new
BuildRequestEntry
(request, config);
260
BuildRequestEntry entry = new
BuildRequestEntry
(request, config);
BackEnd\IntrinsicTask_Tests.cs (2)
3958
BuildRequestEntry entry = new
BuildRequestEntry
(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { "t" }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
3993
var entry = new
BuildRequestEntry
(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { targetName }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
BackEnd\RequestBuilder_Tests.cs (5)
89
BuildRequestEntry entry = new
BuildRequestEntry
(request, configuration);
119
BuildRequestEntry entry = new
BuildRequestEntry
(request, configuration);
153
BuildRequestEntry entry = new
BuildRequestEntry
(request, configuration);
192
BuildRequestEntry entry = new
BuildRequestEntry
(request, configuration);
230
BuildRequestEntry entry = new
BuildRequestEntry
(request, configuration);
BackEnd\TargetBuilder_Tests.cs (32)
105
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
126
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
152
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
181
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
366
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
506
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
532
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
558
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
588
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
623
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
655
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
686
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
712
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
748
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
774
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
801
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
831
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
875
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
902
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
929
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
961
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
1059
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
1094
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
1145
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
1205
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
1247
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
1293
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
1324
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
1398
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
1431
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target), cache[1]);
1458
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, target, BuildRequestDataFlags.SkipNonexistentTargets), cache[1]);
1712
BuildRequestEntry entry = new
BuildRequestEntry
(CreateNewBuildRequest(1, targets), cache[1]);
BackEnd\TargetEntry_Tests.cs (5)
84
BuildRequestEntry requestEntry = new
BuildRequestEntry
(CreateNewBuildRequest(1, new string[] { "foo" }), config);
99
BuildRequestEntry requestEntry = new
BuildRequestEntry
(CreateNewBuildRequest(1, new string[] { "foo" }), config);
113
BuildRequestEntry requestEntry = new
BuildRequestEntry
(CreateNewBuildRequest(1, new string[] { "foo" }), config);
1028
BuildRequestEntry requestEntry = new
BuildRequestEntry
(CreateNewBuildRequest(1, new string[] { "foo" }), config);
1046
BuildRequestEntry requestEntry = new
BuildRequestEntry
(CreateNewBuildRequest(1, new string[1] { "foo" }), config);
BackEnd\TaskHost_Tests.cs (1)
80
BuildRequestEntry entry = new
BuildRequestEntry
(buildRequest, configuration);
130 references to BuildRequestEntry
Microsoft.Build (58)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (31)
66
private readonly List<
BuildRequestEntry
> _requests;
71
private readonly Dictionary<int,
BuildRequestEntry
> _requestsByGlobalRequestId;
135
_requests = new List<
BuildRequestEntry
>();
137
_requestsByGlobalRequestId = new Dictionary<int,
BuildRequestEntry
>();
222
var requestsToShutdown = new List<
BuildRequestEntry
>(_requests);
230
var requestsToWait = new List<
BuildRequestEntry
>(_requests.Count);
231
foreach (
BuildRequestEntry
entry in requestsToShutdown)
251
foreach (
BuildRequestEntry
entry in requestsToWait)
271
foreach (
BuildRequestEntry
entry in requestsToShutdown)
373
BuildRequestEntry
entry = new BuildRequestEntry(request, _configCache[request.ConfigurationId]);
402
BuildRequestEntry
entry = _requestsByGlobalRequestId[unblocker.BlockedRequestId];
482
BuildRequestEntry
entry = _requestsByGlobalRequestId[response.GlobalRequestId];
525
foreach (
BuildRequestEntry
currentEntry in _requests)
634
private void BuildRequestEntry_StateChanged(
BuildRequestEntry
entry, BuildRequestEntryState newState)
723
BuildRequestEntry
activeEntry = null;
724
BuildRequestEntry
firstReadyEntry = null;
726
var completedEntries = new List<
BuildRequestEntry
>();
728
foreach (
BuildRequestEntry
currentEntry in _requests)
766
foreach (
BuildRequestEntry
completedEntry in completedEntries)
802
foreach (
BuildRequestEntry
completedEntry in completedEntries)
913
private void ActivateBuildRequest(
BuildRequestEntry
entry)
959
private static void BeginDeactivateBuildRequest(
BuildRequestEntry
entry)
971
private static void WaitForDeactivateCompletion(
BuildRequestEntry
entry)
987
private void Builder_OnNewBuildRequests(
BuildRequestEntry
issuingEntry, FullyQualifiedBuildRequest[] newRequests)
1004
private void Builder_OnBlockedRequest(
BuildRequestEntry
issuingEntry, int blockingGlobalRequestId, string blockingTarget, BuildResult partialBuildResult = null)
1040
BuildRequestEntry
issuingEntry = unsubmittedRequest.IssuingEntry;
1113
private void IssueBuildRequests(
BuildRequestEntry
issuingEntry, FullyQualifiedBuildRequest[] newRequests)
1459
public readonly
BuildRequestEntry
IssuingEntry;
1471
public PendingUnsubmittedBuildRequests(
BuildRequestEntry
issuingEntry, FullyQualifiedBuildRequest[] newRequests)
1486
private PendingUnsubmittedBuildRequests(
BuildRequestEntry
issuingEntry, int blockingGlobalRequestId, string blockingTarget)
1495
public PendingUnsubmittedBuildRequests(
BuildRequestEntry
issuingEntry, int blockingGlobalRequestId, string blockingTarget, BuildResult partialBuildResult)
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
22
internal delegate void BuildRequestEntryStateChangedDelegate(
BuildRequestEntry
entry, BuildRequestEntryState newState);
BackEnd\Components\Logging\NodeLoggingContext.cs (2)
59
internal ProjectLoggingContext LogProjectStarted(
BuildRequestEntry
requestEntry)
66
internal (ProjectStartedEventArgs, ProjectLoggingContext) CreateProjectLoggingContext(
BuildRequestEntry
requestEntry)
BackEnd\Components\Logging\ProjectLoggingContext.cs (2)
32
internal ProjectLoggingContext(NodeLoggingContext nodeLoggingContext,
BuildRequestEntry
requestEntry)
79
NodeLoggingContext nodeLoggingContext,
BuildRequestEntry
requestEntry)
BackEnd\Components\RequestBuilder\IRequestBuilder.cs (4)
16
internal delegate void NewBuildRequestsDelegate(
BuildRequestEntry
issuingEntry, FullyQualifiedBuildRequest[] requests);
22
internal delegate void BuildRequestCompletedDelegate(
BuildRequestEntry
completedEntry);
31
internal delegate void BuildRequestBlockedDelegate(
BuildRequestEntry
issuingEntry, int blockingGlobalRequestId, string blockingTarget, BuildResult partialBuildResult);
63
void BuildRequest(NodeLoggingContext nodeLoggingContext,
BuildRequestEntry
entry);
BackEnd\Components\RequestBuilder\ITargetBuilder.cs (1)
29
Task<BuildResult> BuildTargets(ProjectLoggingContext projectLoggingContext,
BuildRequestEntry
entry, IRequestBuilderCallback callback, (string name, TargetBuiltReason reason)[] targets, Lookup baseLookup, CancellationToken cancellationToken);
BackEnd\Components\RequestBuilder\ITaskBuilder.cs (1)
54
Task<WorkUnitResult> ExecuteTask(TargetLoggingContext targetLoggingContext,
BuildRequestEntry
requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild task, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution, CancellationToken cancellationToken);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (6)
74
private
BuildRequestEntry
_requestEntry;
170
internal
BuildRequestEntry
RequestEntry
197
public void BuildRequest(NodeLoggingContext loggingContext,
BuildRequestEntry
entry)
571
internal static bool IsBuilderUsingLegacyThreadingSemantics(IBuildComponentHost host,
BuildRequestEntry
entry)
895
BuildRequestEntry
entryToComplete = _requestEntry;
1064
private void RaiseBuildRequestCompleted(
BuildRequestEntry
entryToComplete)
BackEnd\Components\RequestBuilder\TargetBuilder.cs (2)
61
private
BuildRequestEntry
_requestEntry;
103
public async Task<BuildResult> BuildTargets(ProjectLoggingContext loggingContext,
BuildRequestEntry
entry, IRequestBuilderCallback callback, (string name, TargetBuiltReason reason)[] targetNames, Lookup baseLookup, CancellationToken cancellationToken)
BackEnd\Components\RequestBuilder\TargetEntry.cs (4)
79
private
BuildRequestEntry
_requestEntry;
169
BuildRequestEntry
requestEntry,
288
internal
BuildRequestEntry
RequestEntry
420
internal async Task ExecuteTarget(ITaskBuilder taskBuilder,
BuildRequestEntry
requestEntry, ProjectLoggingContext projectLoggingContext, CancellationToken cancellationToken)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
68
private
BuildRequestEntry
_buildRequestEntry;
152
public async Task<WorkUnitResult> ExecuteTask(TargetLoggingContext loggingContext,
BuildRequestEntry
requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken)
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
55
private
BuildRequestEntry
_requestEntry;
115
public TaskHost(IBuildComponentHost host,
BuildRequestEntry
requestEntry, ElementLocation taskLocation, ITargetBuilderCallback targetBuilderCallback)
Microsoft.Build.Engine.UnitTests (72)
BackEnd\BuildRequestEngine_Tests.cs (4)
58
private
BuildRequestEntry
_entry;
81
public void BuildRequest(NodeLoggingContext context,
BuildRequestEntry
entry)
168
public void RaiseRequestComplete(
BuildRequestEntry
entry)
173
public void RaiseRequestBlocked(
BuildRequestEntry
entry, int blockingId, string blockingTarget)
BackEnd\BuildRequestEntry_Tests.cs (11)
26
BuildRequestEntry
entry = new BuildRequestEntry(request, config);
37
BuildRequestEntry
entry = new BuildRequestEntry(null!, null!);
46
BuildRequestEntry
entry = new BuildRequestEntry(request, config);
95
BuildRequestEntry
entry = new BuildRequestEntry(request, config);
117
BuildRequestEntry
entry = new BuildRequestEntry(request, config);
146
BuildRequestEntry
entry = new BuildRequestEntry(request, config);
184
BuildRequestEntry
entry = new BuildRequestEntry(request, config);
200
BuildRequestEntry
entry = new BuildRequestEntry(request, config);
217
BuildRequestEntry
entry = new BuildRequestEntry(request, config);
240
BuildRequestEntry
entry = new BuildRequestEntry(request, config);
260
BuildRequestEntry
entry = new BuildRequestEntry(request, config);
BackEnd\IntrinsicTask_Tests.cs (2)
3958
BuildRequestEntry
entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { "t" }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
3993
var
entry = new BuildRequestEntry(new BuildRequest(1 /* submissionId */, 0, 1, new string[] { targetName }, null, BuildEventContext.Invalid, null), new BuildRequestConfiguration(1, new BuildRequestData("projectFile", new Dictionary<string, string>(), "3.5", Array.Empty<string>(), null), "2.0"));
BackEnd\MockTaskBuilder.cs (1)
83
public Task<WorkUnitResult> ExecuteTask(TargetLoggingContext targetLoggingContext,
BuildRequestEntry
requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild task, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution, CancellationToken cancellationToken)
BackEnd\RequestBuilder_Tests.cs (10)
28
private
BuildRequestEntry
_newBuildRequests_Entry;
32
private
BuildRequestEntry
_buildRequestCompleted_Entry;
89
BuildRequestEntry
entry = new BuildRequestEntry(request, configuration);
119
BuildRequestEntry
entry = new BuildRequestEntry(request, configuration);
153
BuildRequestEntry
entry = new BuildRequestEntry(request, configuration);
192
BuildRequestEntry
entry = new BuildRequestEntry(request, configuration);
230
BuildRequestEntry
entry = new BuildRequestEntry(request, configuration);
291
private void NewBuildRequestsCallback(
BuildRequestEntry
entry, FullyQualifiedBuildRequest[] requests)
310
private void BuildRequestCompletedCallback(
BuildRequestEntry
entry)
359
public Task<BuildResult> BuildTargets(ProjectLoggingContext loggingContext,
BuildRequestEntry
entry, IRequestBuilderCallback callback, (string name, TargetBuiltReason reason)[] targets, Lookup baseLookup, CancellationToken cancellationToken)
BackEnd\TargetBuilder_Tests.cs (33)
105
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
126
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
152
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
181
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
366
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
506
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
532
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
558
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
588
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
623
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
655
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
686
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
712
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
748
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
774
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
801
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
831
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
875
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
902
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
929
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
961
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
1059
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
1094
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
1145
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
1205
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
1247
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
1293
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
1324
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
1398
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
1431
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target), cache[1]);
1458
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, target, BuildRequestDataFlags.SkipNonexistentTargets), cache[1]);
1691
private ProjectLoggingContext GetProjectLoggingContext(
BuildRequestEntry
entry)
1712
BuildRequestEntry
entry = new BuildRequestEntry(CreateNewBuildRequest(1, targets), cache[1]);
BackEnd\TargetEntry_Tests.cs (6)
84
BuildRequestEntry
requestEntry = new BuildRequestEntry(CreateNewBuildRequest(1, new string[] { "foo" }), config);
99
BuildRequestEntry
requestEntry = new BuildRequestEntry(CreateNewBuildRequest(1, new string[] { "foo" }), config);
113
BuildRequestEntry
requestEntry = new BuildRequestEntry(CreateNewBuildRequest(1, new string[] { "foo" }), config);
1028
BuildRequestEntry
requestEntry = new BuildRequestEntry(CreateNewBuildRequest(1, new string[] { "foo" }), config);
1046
BuildRequestEntry
requestEntry = new BuildRequestEntry(CreateNewBuildRequest(1, new string[1] { "foo" }), config);
1191
private ProjectLoggingContext GetProjectLoggingContext(
BuildRequestEntry
entry)
BackEnd\TaskHost_Tests.cs (5)
80
BuildRequestEntry
entry = new BuildRequestEntry(buildRequest, configuration);
1477
public void BuildRequest(NodeLoggingContext nodeLoggingContext,
BuildRequestEntry
entry)
1525
private void MockIRequestBuilderCallback_OnBuildRequestBlocked(
BuildRequestEntry
issuingEntry, int blockingGlobalRequestId, string blockingTarget, IBuildResults partialBuildResult = null)
1533
private void MockIRequestBuilderCallback_OnBuildRequestCompleted(
BuildRequestEntry
completedEntry)
1541
private void MockIRequestBuilderCallback_OnNewBuildRequests(
BuildRequestEntry
issuingEntry, FullyQualifiedBuildRequest[] requests)