Exemplo n.º 1
0
                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;
                }
Exemplo n.º 2
0
 //---------------------------------------------------------------
 // Member methods.
 //
 public PingServerProtocolContext(PingServerProtocol owner)
     : base(PingServerProtocol_SM.Ready)
 {
     _owner = owner;
 }
Exemplo n.º 3
0
        //---------------------------------------------------------------
        // Member methods.
        //

        public PingServerProtocolContext(PingServerProtocol owner) :
            base(PingServerProtocol_SM.Ready)
        {
            _owner = owner;
        }