コード例 #1
0
                protected internal override void InternalStateChange_To_AdditionServerServiceDef_additionServerFSM_InitTransition(AdditionServerServiceDef_additionServerFSMContext context, InternalEvent ie)
                {
                    AdditionServerServiceDef_additionServerFSM ctxt = context.Owner;


#if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionServerServiceDef_additionServerFSM_SM.Ready.InternalStateChange_To_AdditionServerServiceDef_additionServerFSM_InitTransition(, InternalEvent ie)");
#endif


                    context.State.Exit(context);
                    context.ClearState();

                    try
                    {
                        ctxt.fsmStartedAction();
                        ctxt.processNotifications("Init", ie);
                    }
                    finally
                    {
                        context.State = AdditionServerServiceDef_additionServerFSM_SM.Init;
                        context.State.Entry(context);
                    }

                    return;
                }
コード例 #2
0
        public override void run()
        {
            // Perform any entry actions specified by the start state.
            pAdditionServerServiceDef_additionServerFSM.fsmStartedAction();


            // Kick off  receive loop...
            base.run();
        }