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