63 references to LinkStatus
Microsoft.Build (54)
BackEnd\Components\Communications\NodeEndpointInProc.cs (10)
37
private
LinkStatus
_status;
106
_status =
LinkStatus
.Inactive;
151
public
LinkStatus
LinkStatus
213
ErrorUtilities.VerifyThrow(_status ==
LinkStatus
.Active, "Cannot send when link status is not active. Current status {0}", _status);
260
private void RaiseLinkStatusChanged(
LinkStatus
newStatus)
283
ChangeLinkStatus(
LinkStatus
.Active);
284
_peerEndpoint.ChangeLinkStatus(
LinkStatus
.Active);
304
ErrorUtilities.VerifyThrow(_status ==
LinkStatus
.Active, "Endpoint is not connected. Current status {0}", _status);
306
ChangeLinkStatus(
LinkStatus
.Inactive);
319
private void ChangeLinkStatus(
LinkStatus
newStatus)
BackEnd\Components\Communications\NodeProviderInProc.cs (2)
416
private void InProcNodeEndpoint_OnLinkStatusChanged(INodeEndpoint endpoint,
LinkStatus
status)
418
if (status ==
LinkStatus
.Active)
BackEnd\Node\InProcNode.cs (9)
243
if (_nodeEndpoint.LinkStatus ==
LinkStatus
.Active)
254
if (_nodeEndpoint.LinkStatus ==
LinkStatus
.Active)
265
if (_nodeEndpoint.LinkStatus ==
LinkStatus
.Active)
276
if (_nodeEndpoint.LinkStatus ==
LinkStatus
.Active)
351
if (_nodeEndpoint.LinkStatus ==
LinkStatus
.Active)
405
private void OnLinkStatusChanged(INodeEndpoint endpoint,
LinkStatus
status)
409
case
LinkStatus
.ConnectionFailed:
410
case
LinkStatus
.Failed:
415
case
LinkStatus
.Inactive:
BackEnd\Node\OutOfProcNode.cs (10)
376
if (_nodeEndpoint.LinkStatus ==
LinkStatus
.Active)
394
if (_nodeEndpoint.LinkStatus ==
LinkStatus
.Active)
405
if (_nodeEndpoint.LinkStatus ==
LinkStatus
.Active)
416
if (_nodeEndpoint.LinkStatus ==
LinkStatus
.Active)
512
if (_nodeEndpoint.LinkStatus ==
LinkStatus
.Active)
561
private void OnLinkStatusChanged(INodeEndpoint endpoint,
LinkStatus
status)
565
case
LinkStatus
.ConnectionFailed:
566
case
LinkStatus
.Failed:
571
case
LinkStatus
.Inactive:
584
if (_nodeEndpoint.LinkStatus ==
LinkStatus
.Active)
BackEnd\Node\OutOfProcServerNode.cs (4)
267
private void OnLinkStatusChanged(INodeEndpoint endpoint,
LinkStatus
status)
271
case
LinkStatus
.ConnectionFailed:
272
case
LinkStatus
.Failed:
287
if (_nodeEndpoint.LinkStatus ==
LinkStatus
.Active)
INodeEndpoint.cs (2)
14
internal delegate void LinkStatusChangedDelegate(INodeEndpoint endpoint,
LinkStatus
status);
75
LinkStatus
LinkStatus
NodeEndpointOutOfProcBase.cs (17)
54
private
LinkStatus
_status;
135
public
LinkStatus
LinkStatus
154
ErrorUtilities.VerifyThrow(_status ==
LinkStatus
.Inactive, "Link not inactive. Status is {0}", _status);
185
if (_status ==
LinkStatus
.Active)
208
_status =
LinkStatus
.Inactive;
271
protected void ChangeLinkStatus(
LinkStatus
newStatus)
283
private void RaiseLinkStatusChanged(
LinkStatus
newStatus)
306
ChangeLinkStatus(
LinkStatus
.Inactive);
382
ChangeLinkStatus(
LinkStatus
.ConnectionFailed);
471
ChangeLinkStatus(
LinkStatus
.Active);
482
ChangeLinkStatus(
LinkStatus
.Failed);
563
ChangeLinkStatus(
LinkStatus
.Inactive);
583
ChangeLinkStatus(
LinkStatus
.Failed);
589
ChangeLinkStatus(
LinkStatus
.Failed);
607
ChangeLinkStatus(
LinkStatus
.Failed);
656
ChangeLinkStatus(
LinkStatus
.Failed);
664
ChangeLinkStatus(
LinkStatus
.Failed);
Microsoft.Build.Engine.UnitTests (9)
BackEnd\NodeEndpointInProc_Tests.cs (9)
147
public readonly
LinkStatus
status;
149
public LinkStatusContext(Thread thread,
LinkStatus
status)
268
Assert.Equal(
LinkStatus
.Active, _linkStatusTable[endpoints.NodeEndpoint].status);
269
Assert.Equal(
LinkStatus
.Active, _linkStatusTable[endpoints.ManagerEndpoint].status);
367
Assert.Equal(
LinkStatus
.Inactive, endpoint.LinkStatus); // "Expected LinkStatus to be Inactive"
372
Assert.Equal(
LinkStatus
.Active, endpoint.LinkStatus); // "Expected LinkStatus to be Active"
418
Assert.Equal(
LinkStatus
.Inactive, _linkStatusTable[endpoints.NodeEndpoint].status);
419
Assert.Equal(
LinkStatus
.Inactive, _linkStatusTable[endpoints.ManagerEndpoint].status);
437
private void LinkStatusChanged(INodeEndpoint endpoint,
LinkStatus
status)