Exemple #1
0
        public void Invoke(SimChainContext ctx)
        {
            try
            {
                this.Node(ctx);

                if (this.m_NextNode != null)
                {
                    this.m_NextNode.Invoke(ctx);
                }
            }
            catch (Exception ex)
            {
                var errMsg = string.Format("{0}:{1}", this.GetType().Name, ex.Message);
                ctx.SetValue(ERROR_KEY, errMsg);
                Console.Write(errMsg);
            }
        }
Exemple #2
0
 protected abstract void Node(SimChainContext ctx);
Exemple #3
0
 void IChainNode.Node(SimChainContext ctx)
 {
     this.Node(ctx);
 }