Exemplo n.º 1
0
        internal static void ParseSubscribe(string pScopedTopics, TheQueuedSender pQSender)
        {
            if (string.IsNullOrEmpty(pScopedTopics) || pQSender == null)
            {
                return;
            }

            TheBaseAssets.MySYSLOG.WriteToLog(295, TSM.L(eDEBUG_LEVELS.VERBOSE) ? null : new TSM("CoreComm", $"DoParseSubscribe for Topics={pScopedTopics} of {pQSender.MyTargetNodeChannel?.ToMLString()}", eMsgLevel.l7_HostDebugMessage));

            bool HasSubscribedBefore = !pQSender.Subscribe(pScopedTopics, true); //Incoming Subs are native to connected node

            TheBaseAssets.MySYSLOG.WriteToLog(300, TSM.L(eDEBUG_LEVELS.VERBOSE) ? null : new TSM("CoreComm", $"DoParseSubscribe: {pQSender.MyTargetNodeChannel?.ToMLString()} updates Subscription Topis: {pScopedTopics} Was Sub'ed before: {HasSubscribedBefore}", eMsgLevel.l7_HostDebugMessage));
        }