2 writes to _componentHost
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
555
_componentHost
= host;
563
_componentHost
= null;
28 references to _componentHost
Microsoft.Build (28)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (28)
188
return (_requestTask?.IsCompleted == false) || (
_componentHost
.LegacyThreadingData.MainThreadSubmissionId != -1);
201
ErrorUtilities.VerifyThrow(
_componentHost
!= null, "Host not set.");
213
_targetBuilder = (ITargetBuilder)
_componentHost
.GetComponent(BuildComponentType.TargetBuilder);
339
ErrorUtilities.VerifyThrow(
_componentHost
!= null, "No host object set");
367
BuildRequestConfiguration config = new BuildRequestConfiguration(data,
_componentHost
.BuildParameters.DefaultToolsVersion);
368
ProjectIsolationMode isolateProjects =
_componentHost
.BuildParameters.ProjectIsolationMode;
408
if (IsBuilderUsingLegacyThreadingSemantics(
_componentHost
, _requestEntry))
554
ErrorUtilities.VerifyThrow(
_componentHost
== null, "RequestBuilder already initialized.");
648
if (IsBuilderUsingLegacyThreadingSemantics(
_componentHost
, _requestEntry))
651
_componentHost
.LegacyThreadingData.SignalLegacyThreadStart(this);
664
IBuildComponentHost componentHostSnapshot =
_componentHost
;
681
ErrorUtilities.VerifyThrow(
_componentHost
.LegacyThreadingData.MainThreadSubmissionId != _requestEntry.Request.SubmissionId, "Can't start builder thread when we are using legacy threading semantics for this request.");
719
CultureInfo.CurrentCulture =
_componentHost
.BuildParameters.Culture;
720
CultureInfo.CurrentUICulture =
_componentHost
.BuildParameters.UICulture;
722
Thread.CurrentThread.Priority =
_componentHost
.BuildParameters.BuildThreadPriority;
903
if (
_componentHost
.BuildParameters.SaveOperatingEnvironment)
963
if (IsBuilderUsingLegacyThreadingSemantics(
_componentHost
, _requestEntry))
965
handle = RequestBuilder.WaitWithBuilderThreadStart(handles, true,
_componentHost
.LegacyThreadingData, _requestEntry.Request.SubmissionId);
1095
if (
_componentHost
.BuildParameters.SaveOperatingEnvironment)
1113
: (
_componentHost
.GetComponent(BuildComponentType.BuildCheckManagerProvider) as IBuildCheckManagerProvider)!.Instance;
1135
_componentHost
,
1194
(_requestEntry.RequestConfiguration.ResultsNodeId !=
_componentHost
.BuildParameters.NodeId))
1201
_requestEntry.RequestConfiguration.ResultsNodeId ==
_componentHost
.BuildParameters.NodeId,
1234
var resultsCache = (IResultsCache)
_componentHost
.GetComponent(BuildComponentType.ResultsCache);
1265
if (
_componentHost
.BuildParameters.SaveOperatingEnvironment)
1302
if (_requestEntry.RequestConfiguration.SavedEnvironmentVariables != null &&
_componentHost
.BuildParameters.SaveOperatingEnvironment)
1310
SetEnvironmentVariableBlock(
_componentHost
.BuildParameters.BuildProcessEnvironment);
1319
if (
_componentHost
.BuildParameters.SaveOperatingEnvironment)