protected internal override void QueryHeartbeatPulseTransition(PingServerProtocolContext context)
                {
                    PingServerProtocol ctxt = context.Owner;


#if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : PingServerProtocol_SM.Ready.QueryHeartbeatPulseTransition()");
#endif

                    PingServerProtocolState endState = context.State;

                    context.ClearState();

                    try
                    {
                        ctxt.sendReportHeartbeatPulseAction();
                    }
                    finally
                    {
                        context.State = endState;
                    }

                    return;
                }
Esempio n. 2
0
 public PingServerProtocol()
 {
     /*
      * If there are other variables, context must be constructed last so that all
      * class variables are available if an EntryAction of the InitialState of the
      * statemachine needs them.
      */
     context = new PingServerProtocolContext(this);
 }
                protected internal override void QueryHeartbeatPulseTransition(PingServerProtocolContext context)
                {
#if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : PingServerProtocol_SM.Internally_Generated_State_DO_NOT_USE.QueryHeartbeatPulseTransition()");
#endif


                    return;
                }
Esempio n. 4
0
		public PingServerProtocol()
	{

		/*
	 * If there are other variables, context must be constructed last so that all 
	 * class variables are available if an EntryAction of the InitialState of the 
	 * statemachine needs them. 
		 */
		context = new PingServerProtocolContext(this);
	}
            protected internal virtual void Default(PingServerProtocolContext context)
            {
#if TRACE
                Trace.WriteLine(
                    "TRANSITION : Default");
#endif
                throw (
                          new statemap.TransitionUndefinedException(
                              "State: " +
                              context.State.Name +
                              ", Transition: " +
                              context.GetTransition()));
            }
                protected internal override void QueryHeartbeatPulseTransition(PingServerProtocolContext context)
                {
                    PingServerProtocol ctxt = context.Owner;

                    #if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : PingServerProtocol_SM.Ready.QueryHeartbeatPulseTransition()");
                    #endif

                    PingServerProtocolState endState = context.State;

                    context.ClearState();

                    try
                    {
                        ctxt.sendReportHeartbeatPulseAction();
                    }
                    finally
                    {
                        context.State = endState;
                    }

                    return;
                }
                protected internal override void QueryHeartbeatPulseTransition(PingServerProtocolContext context)
                {
                    #if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : PingServerProtocol_SM.Internally_Generated_State_DO_NOT_USE.QueryHeartbeatPulseTransition()");
                    #endif

                    return;
                }
 protected internal virtual void QueryHeartbeatPulseTransition(PingServerProtocolContext context)
 {
     Default(context);
 }
 protected internal virtual void Exit(PingServerProtocolContext context)
 {
 }
 protected internal virtual void Default(PingServerProtocolContext context)
 {
     #if TRACE
     Trace.WriteLine(
         "TRANSITION : Default");
     #endif
     throw (
         new statemap.TransitionUndefinedException(
             "State: " +
             context.State.Name +
             ", Transition: " +
             context.GetTransition()));
 }
 protected internal virtual void QueryHeartbeatPulseTransition(PingServerProtocolContext context)
 {
     Default(context);
 }
 protected internal virtual void Exit(PingServerProtocolContext context)
 {
 }