Exemple #1
0
        static void Main(string[] args)
        {
            RadiusProgramMainFunctions
            .ProgramMain(
                "winems-evolution-processing-cli",
                () =>
            {
                Log4NetLoggingFactory.BindLog4Net(
                    Log4NetLoggingFactory.DefaultConfig(
                        "log-folder".AppSetting()
                        .UseFolderOrDefault(
                            @"C:\Neurasoft\logs\WineMS\Evolution"),
                        "winems-evolution-log.txt"));
                CommonInitFunctions.Init();
            },
                () =>
            {
                ApplicationInformationFunctions.LogApplicationInformation(
                    ApplicationInformationFunctions.GetApplicationInformation());

                // TODO: add code to call transaction processing functions.
            },
                exception => { },
                () => { },
                RadiusProgramMainFunctions.FinallyPause.IfDebuggerAttached);
        }
Exemple #2
0
        static void Main()
        {
            RadiusProgramMainFunctions
            .ProgramMain(
                "winems-evolution-processing",
                () =>
            {
                ApplicationState.LogFolder =
                    "log-folder"
                    .AppSetting()
                    .UseFolderOrDefault(
                        @"C:\Neurasoft\logs\WineMS\Evolution");

                Log4NetLoggingFactory.BindLog4Net(
                    Log4NetLoggingFactory.DefaultConfig(
                        ApplicationState.LogFolder,
                        "winems-evolution-log.txt"));
                CommonInitFunctions.Init();
            },
                () =>
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new FrmMain());
            },
                exception => { exception.LogAndShowExceptionDialog(); },
                () => { });
        }