Esempio n. 1
0
File: main.cs Progetto: symform/xsp
 public static int Main(string [] args)
 {
     AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
     try {
         var svr = new Server ();
         return svr.RealMain (args, true, null, false);
     } catch (ThreadAbortException) {
         // Single-app mode and ASP.NET appdomain unloaded
         Thread.ResetAbort ();
     }
     return 1;
 }
Esempio n. 2
0
File: main.cs Progetto: ryepup/xsp
 public static int Main(string [] args)
 {
     AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
     bool quiet = false;
     // TODO: Understand why the while is here but commented
     //while (true) {
     try {
         var svr = new Server ();
         return svr.RealMain (args, true, null, quiet);
     } catch (ThreadAbortException) {
         // Single-app mode and ASP.NET appdomain unloaded
         Thread.ResetAbort ();
         quiet = true; // hush 'RealMain'
     }
     //}
     return 1;
 }
Esempio n. 3
0
 public static int Main(string [] args)
 {
     AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler (CurrentDomain_UnhandledException);
     bool quiet = false;
     //while (true) {
         try {
             Server svr = new Server ();
             return svr.RealMain (args, true, null, quiet);
         } catch (ThreadAbortException) {
             // Single-app mode and ASP.NET appdomain unloaded
             Thread.ResetAbort ();
             quiet = true; // hush 'RealMain'
         }
     //}
     return 1;
 }