Пример #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;
                }
Пример #2
0
 //---------------------------------------------------------------
 // Member methods.
 //
 public PingServerProtocolContext(PingServerProtocol owner)
     : base(PingServerProtocol_SM.Ready)
 {
     _owner = owner;
 }
Пример #3
0
        //---------------------------------------------------------------
        // Member methods.
        //

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