コード例 #1
0
ファイル: BaseChainNode.cs プロジェクト: cwd29/sim
        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);
            }
        }
コード例 #2
0
ファイル: BaseChainNode.cs プロジェクト: cwd29/sim
 protected abstract void Node(SimChainContext ctx);
コード例 #3
0
ファイル: BaseChainNode.cs プロジェクト: cwd29/sim
 void IChainNode.Node(SimChainContext ctx)
 {
     this.Node(ctx);
 }