Пример #1
0
        static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += UnhandledException;

            try
            {
                UdpLoggerManager.Configure();
                if (!UdpLoggerManager.IsRunning)
                {
                    TizenLoggerManager.Configure();
                }

                ReactNativeApp app = new ReactNativeApp();
                app.Run(args);
            }
            catch (Exception e)
            {
                Log.Error(Tag, e.ToString());
            }
            finally
            {
                if (UdpLoggerManager.IsRunning)
                {
                    UdpLoggerManager.Terminate();
                }
            }
        }
Пример #2
0
        private static void Main(string[] args)
        {
            UdpLoggerManager.Configure();
            if (!UdpLoggerManager.IsRunning)
            {
                TizenLoggerManager.Configure();
            }
            AppDomain.CurrentDomain.UnhandledException += UnhandledException;

            try
            {
                var app = new Program();

                GenGridView.Init();
                Forms.Init(app);
                app.Run(args);
            }
            finally
            {
                if (UdpLoggerManager.IsRunning)
                {
                    UdpLoggerManager.Terminate();
                }
            }
        }