ChessConsole.CurrentUser.Pulse C# (CSharp) Method

Pulse() private static method

private static Pulse ( object source, System.Timers.ElapsedEventArgs e ) : void
source object
e System.Timers.ElapsedEventArgs
return void
        private static void Pulse(object source, ElapsedEventArgs e)
        {
            var command = new PulseRequest {From = Name};
            var response = ServerProvider.MakeRequest<PulseResponse>(command);
            if (response.Status != Statuses.Ok)
            {
                Console.WriteLine("Connection lost!");
                CurrentGame = null;
                Name = null;
                StopPulse();
            }

            MessageProcessor.Process(response.Messages);
        }