コード例 #1
0
 internal bool SetLastHeartbeat(TheSessionState pState)
 {
     if (TheCommonUtils.IsLocalhost(MyTargetNodeChannel.cdeMID))
     {
         return(true);
     }
     if (MyTargetNodeChannel.MySessionState == null)
     {
         MyTargetNodeChannel.MySessionState = pState;
     }
     ResetHeartbeatTimer(false, MyTargetNodeChannel.MySessionState);
     return(true);
 }
コード例 #2
0
 /// <summary>
 /// Returns True if this user is logged on to the current node.
 /// </summary>
 /// <returns></returns>
 public bool IsOnCurrentNode()
 {
     return(TheCommonUtils.IsLocalhost(HomeNode));
 }