示例#1
0
                protected internal override void QueryAdditionTransition(AdditionServerServiceDef_additionServerFSMContext context, QueryAddition msg, uint sender)
                {
                    AdditionServerServiceDef_additionServerFSM ctxt = context.Owner;


#if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionServerServiceDef_additionServerFSM_SM.Ready.QueryAdditionTransition(, QueryAddition msg, uint sender)");
#endif


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

                    try
                    {
                        ctxt.sendReportAdditionAction(msg, sender);
                        ctxt.processNotifications("Ready", null);
                    }
                    finally
                    {
                        context.State = AdditionServerServiceDef_additionServerFSM_SM.Ready;
                        context.State.Entry(context);
                    }

                    return;
                }
示例#2
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;
                }
示例#3
0
                protected internal override void InitToReadyEventDefTransition(AdditionServerServiceDef_additionServerFSMContext context)
                {
                    AdditionServerServiceDef_additionServerFSM ctxt = context.Owner;


#if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionServerServiceDef_additionServerFSM_SM.Init.InitToReadyEventDefTransition()");
#endif


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

                    try
                    {
                        ctxt.serverInitializedAction();
                        ctxt.processNotifications("Ready", null);
                    }
                    finally
                    {
                        context.State = AdditionServerServiceDef_additionServerFSM_SM.Ready;
                        context.State.Entry(context);
                    }

                    return;
                }
                protected internal override void QueryAdditionTransition(AdditionServerServiceDef_additionServerFSMContext context, QueryAddition msg, uint sender)
                {
                    AdditionServerServiceDef_additionServerFSM ctxt = context.Owner;

                    #if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionServerServiceDef_additionServerFSM_SM.Ready.QueryAdditionTransition(, QueryAddition msg, uint sender)");
                    #endif

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

                    try
                    {
                        ctxt.sendReportAdditionAction(msg, sender);
                        ctxt.processNotifications("Ready", null);
                    }
                    finally
                    {
                        context.State = AdditionServerServiceDef_additionServerFSM_SM.Ready;
                        context.State.Entry(context);
                    }

                    return;
                }
                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;
                }
                protected internal override void InitToReadyEventDefTransition(AdditionServerServiceDef_additionServerFSMContext context)
                {
                    AdditionServerServiceDef_additionServerFSM ctxt = context.Owner;

                    #if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : AdditionServerServiceDef_additionServerFSM_SM.Init.InitToReadyEventDefTransition()");
                    #endif

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

                    try
                    {
                        ctxt.serverInitializedAction();
                        ctxt.processNotifications("Ready", null);
                    }
                    finally
                    {
                        context.State = AdditionServerServiceDef_additionServerFSM_SM.Ready;
                        context.State.Entry(context);
                    }

                    return;
                }