Esempio n. 1
0
 /// <summary>
 /// Program's entry point.
 /// </summary>
 /// <param name="args">Commandline arguments.</param>
 public static void Main(string[] args)
 {
     Console.Title = "Gamemakergm's Heartbeater.";
     new ServerExample("[MCTest] Gamemakergm's Awesome Build", true); // Create a new server for demonstration purposes.
     Heartbeat = new HeartbeatExample(); // Create the new heartbeat.
     Manager = new HeartbeatManager(Heartbeat, TimeSpan.FromSeconds(5), ServerExample.Server); //
     while (true)
     {
         if (Console.ReadLine().Equals("h")) Console.WriteLine("H");
     }
 }
 /// <summary>
 /// Program's entry point.
 /// </summary>
 /// <param name="args">Commandline arguments.</param>
 public static void Main(string[] args)
 {
     Console.Title = "Gamemakergm's Heartbeater.";
     new ServerExample("[MCTest] Gamemakergm's Awesome Build", true);                            // Create a new server for demonstration purposes.
     Heartbeat = new HeartbeatExample();                                                         // Create the new heartbeat.
     Manager   = new HeartbeatManager(Heartbeat, TimeSpan.FromSeconds(5), ServerExample.Server); //
     while (true)
     {
         if (Console.ReadLine().Equals("h"))
         {
             Console.WriteLine("H");
         }
     }
 }