コード例 #1
0
 /// <summary>
 /// Updates the current link status if it has changed and notifies any registered delegates.
 /// </summary>
 /// <param name="newStatus">The status the node should now be in.</param>
 protected void ChangeLinkStatus(LinkStatus newStatus)
 {
     ErrorUtilities.VerifyThrow(_status != newStatus, "Attempting to change status to existing status {0}.", _status);
     CommunicationsUtilities.Trace("Changing link status from {0} to {1}", _status.ToString(), newStatus.ToString());
     _status = newStatus;
     RaiseLinkStatusChanged(_status);
 }
コード例 #2
0
        public static LinkDto CreateLink(ILinkRule rule, bool ruleApply, LinkStatus linkStatus)
        {
            var linkDto = new LinkDto("link", linkStatus.ToString(), 1);

            rule.SetLinkTo(ruleApply, linkStatus, linkDto);
            return(linkDto);
        }
コード例 #3
0
 /// <summary>
 /// Updates the current link status if it has changed and notifies any registered delegates.
 /// </summary>
 /// <param name="newStatus">The status the node should now be in.</param>
 protected void ChangeLinkStatus(LinkStatus newStatus)
 {
     ErrorUtilities.VerifyThrow(_status != newStatus, "Attempting to change status to existing status {0}.", _status);
     CommunicationsUtilities.Trace("Changing link status from {0} to {1}", _status.ToString(), newStatus.ToString());
     _status = newStatus;
     RaiseLinkStatusChanged(_status);
 }