示例#1
0
                protected internal override void InternalStateChange_To_AdditionClientServiceDef_additionClientFSM_InitTransition(AdditionClientServiceDef_additionClientFSMContext context, InternalEvent ie)
                {
                    AdditionClientServiceDef_additionClientFSM ctxt = context.Owner;


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


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

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

                    return;
                }
        public override void run()
        {
            // Perform any entry actions specified by the start state.
            pAdditionClientServiceDef_additionClientFSM.serviceStartedAction();


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