예제 #1
0
        private static void OnEveryTenSeconds()
        {
            try
            {
                BotLog.Write(0, "MainCycle", "Ten-second entry");

                SystemSettings.HeartbeatBackend = (ulong)DateTime.UtcNow.ToUnix();
                CommsTransmitter.Run();

                BroadcastTimestamp();

                try
                {
                    /*TestTrace("Running EventProcessor.Run()...");
                     * EventProcessor.Run();
                     * TestTrace(" done.\r\n");*/
                }
                catch (Exception e)
                {
                    TraceAndReport(e);
                }

                try
                {
                    /*TestTrace("Running MailResolver.Run()...");
                     * MailResolver.Run();
                     * TestTrace(" done.\r\n");*/
                }
                catch (Exception e)
                {
                    TraceAndReport(e);
                }

                try
                {
                    /*TestTrace("Running MailProcessor.Run()...");
                     * MailProcessor.Run();
                     * TestTrace(" done.\r\n");*/
                }
                catch (Exception e)
                {
                    TraceAndReport(e);
                }

                BotLog.Write(0, "MainCycle", "Ten-second exit");
            }
            catch (Exception e)
            {
                ExceptionMail.Send(e, true);
            }
        }
예제 #2
0
        private static void OnEveryTenSeconds()
        {
            try
            {
                BotLog.Write(0, "MainCycle", "Ten-second entry");

                CommsTransmitter.Run();

                try
                {
                    /*TestTrace("Running EventProcessor.Run()...");
                     * EventProcessor.Run();
                     * TestTrace(" done.\r\n");*/
                }
                catch (Exception e)
                {
                    TraceAndReport(e);
                }

                try
                {
                    /*TestTrace("Running MailResolver.Run()...");
                     * MailResolver.Run();
                     * TestTrace(" done.\r\n");*/
                }
                catch (Exception e)
                {
                    TraceAndReport(e);
                }

                try
                {
                    /*TestTrace("Running MailProcessor.Run()...");
                     * MailProcessor.Run();
                     * TestTrace(" done.\r\n");*/
                }
                catch (Exception e)
                {
                    TraceAndReport(e);
                }

                BotLog.Write(0, "MainCycle", "Ten-second exit");
            }
            catch (Exception e)
            {
                ExceptionMail.Send(e, true);
            }
        }