예제 #1
0
파일: Program.cs 프로젝트: Nezz/SharpDX
 static void Main(string[] args)
 {
     try
     {
         var app = new SharpDocApp();
         app.ParseArguments(args);
         app.Run();
     } catch (Exception ex)
     {
         Logger.Fatal("Unexpected exception", ex);
     }
 }
예제 #2
0
 static void Main(string[] args)
 {
     try
     {
         var app = new SharpDocApp();
         app.ParseArguments(args);
         app.Run();
     } catch (Exception ex)
     {
         Logger.Fatal("Unexpected exception", ex);
     }
 }
예제 #3
0
 static int Main(string[] args)
 {
     int resultCode = 0;
     try
     {
         var app = new SharpDocApp();
         app.ParseArguments(args);
         app.Run();
     }
     catch (FatalException)
     {
         resultCode = 1;
     }
     catch (Exception ex)
     {
         Logger.Error("Unexpected exception", ex);
         resultCode = 1;
     }
     return resultCode;
 }
예제 #4
0
        static int Main(string[] args)
        {
            int resultCode = 0;

            try
            {
                var app = new SharpDocApp();
                app.ParseArguments(args);
                app.Run();
            }
            catch (FatalException)
            {
                resultCode = 1;
            }
            catch (Exception ex)
            {
                Logger.Error("Unexpected exception", ex);
                resultCode = 1;
            }
            return(resultCode);
        }