Ejemplo n.º 1
0
            /// <summary/>
            public void RaiseCallbackEvent(string result)
            {
                if (result != null)
                {
                    XmlDocument doc = new XmlDocument();
                    doc.LoadXml(result);
                    LastNode = doc.ChildNodes[0];

                    if (callback != null)
                    {
                        @continue = callback(LastNode);
                    }

                    if (lastNodeName != null && LastNode.Name == lastNodeName)
                    {
                        LastNodeArrived.Set();
                    }
                }
            }
Ejemplo n.º 2
0
            /// <summary/>
            IMessage IMessageSink.SyncProcessMessage(IMessage msg)
            {
                bool   @continue = true;
                string value     = msg.Properties["data"] as string;

                if (value != null)
                {
                    XmlDocument doc = new XmlDocument();
                    doc.LoadXml(value);
                    LastNode = doc.ChildNodes[0];

                    if (callback != null)
                    {
                        @continue = callback(LastNode);
                    }

                    if (lastNodeName != null && LastNode.Name == lastNodeName)
                    {
                        LastNodeArrived.Set();
                    }
                }

                return(new OutgoingMessage(@continue));
            }