コード例 #1
0
        /// <summary>
        /// Returns true if this message came from the FirstNode
        /// </summary>
        /// <returns></returns>
        public bool IsFirstNode(bool CheckISO)
        {
            int t = HobCount();

            if (t == 1 || ((t == 2 || (CheckISO && TheBaseAssets.MyServiceHostInfo.IsIsolated && t == 3)) && //New in V4: If Last Node IsIsolated - FirstNode Rule still applies
                           TheCommonUtils.GetLastURL(ORG).Equals(TheBaseAssets.MyServiceHostInfo.MyDeviceInfo.DeviceID)))
            {
                return(true);
            }
            else
            {
                //if (t==3) TheSystemMessageLog.ToCo($"DID:{TheBaseAssets.MyServiceHostInfo.MyDeviceInfo.DeviceID} ORG:{ORG} LastURL:{TheCommonUtils.GetLastURL(ORG)} ");
                return(false);
            }
        }