NotifyDynamicSinks() static private method

static private NotifyDynamicSinks ( IMessage msg, ArrayWithSize dynSinks, bool bCliSide, bool bStart, bool bAsync ) : void
msg IMessage
dynSinks ArrayWithSize
bCliSide bool
bStart bool
bAsync bool
return void
        internal virtual bool NotifyDynamicSinks(
            IMessage msg,
            bool bCliSide,
            bool bStart,
            bool bAsync,
            bool bNotifyGlobals)
        {
            bool bHasDynamicSinks = false;

            if (bNotifyGlobals && (_dphGlobal.DynamicProperties != null))
            {
                ArrayWithSize globalSinks = GlobalDynamicSinks;
                if (globalSinks != null)
                {
                    DynamicPropertyHolder.NotifyDynamicSinks(
                        msg,
                        globalSinks,
                        bCliSide,
                        bStart,
                        bAsync);
                    bHasDynamicSinks = true;
                }
            }

            ArrayWithSize perCtxSinks = DynamicSinks;

            if (perCtxSinks != null)
            {
                DynamicPropertyHolder.NotifyDynamicSinks(
                    msg,
                    perCtxSinks,
                    bCliSide,
                    bStart,
                    bAsync);
                bHasDynamicSinks = true;
            }

            return(bHasDynamicSinks);
        } // NotifyDynamicSinks
Beispiel #2
0
        internal virtual bool NotifyDynamicSinks(IMessage msg, bool bCliSide, bool bStart, bool bAsync, bool bNotifyGlobals)
        {
            bool flag = false;

            if (bNotifyGlobals && Context._dphGlobal.DynamicProperties != null)
            {
                ArrayWithSize globalDynamicSinks = Context.GlobalDynamicSinks;
                if (globalDynamicSinks != null)
                {
                    DynamicPropertyHolder.NotifyDynamicSinks(msg, globalDynamicSinks, bCliSide, bStart, bAsync);
                    flag = true;
                }
            }
            ArrayWithSize dynamicSinks = this.DynamicSinks;

            if (dynamicSinks != null)
            {
                DynamicPropertyHolder.NotifyDynamicSinks(msg, dynamicSinks, bCliSide, bStart, bAsync);
                flag = true;
            }
            return(flag);
        }