Example #1
0
 static void Main(string[] args)
 {
     EnterMethod();
     try
     {
         Console.WriteLine("Starting Mono.AppServer...\n");
         ApplicationServer Server = new ApplicationServer(1033, "." + Path.DirectorySeparatorChar + "applications", new LogStringEvent(LogString));
         SendString("ApplicationServer Running");
         Console.WriteLine("\nApplicationServer Running.  Press enter to exit...");
         Console.ReadLine();
         Server.Unload();
         System.Diagnostics.Process.GetCurrentProcess().Kill();
     }
     catch (Exception E)
     {
         SendError(E);
         throw;
     }
     finally
     {
         ExitMethod();
     }
 }
Example #2
0
 static void Main(string[] args)
 {
   EnterMethod();
   try
   {
     Console.WriteLine("Starting Mono.AppServer...\n");
     ApplicationServer Server=new ApplicationServer(1033, "." + Path.DirectorySeparatorChar + "applications", new LogStringEvent(LogString));        
     SendString("ApplicationServer Running");
     Console.WriteLine("\nApplicationServer Running.  Press enter to exit...");
     Console.ReadLine();
     Server.Unload();
     System.Diagnostics.Process.GetCurrentProcess().Kill();
   }
   catch(Exception E)
   {
     SendError(E);
     throw;
   }
   finally
   {
     ExitMethod();
   }
 }