예제 #1
0
        public override void Process(opis message)
        {
            bool pass = (CTX.CheckParentOrder(o, message["original_msg_context"]));

            if (pass)
            {
                message["run_on_this_context"].body = "yepp";
            }
        }
예제 #2
0
        public override void Process(opis message)
        {
            //  !string.IsNullOrEmpty(message["original_msg_context"].V("ID"));
            //  is wery important, because it remove situations when sentence context stub is empty
            //  then ewery context accept inject msg, this is wrong

            bool pass = (CTX.CheckParentOrder(message["original_msg_context"], o)) &&
                        !string.IsNullOrEmpty(message["original_msg_context"].V("ID"));

            if (pass)
            {
                message["run_on_this_context"].body = "yepp";
            }
        }