Esempio n. 1
0
    static int Main(string[] args)
    {
        int ret = -1;

        CoresConfig.ApplyHeavyLoadServerConfigAll();

        //CoresConfig.LocalLargeFileSystemSettings.MaxSingleFileSize.SetValue(200);

        //Dbg.SetDebugMode(DebugMode.Debug, printStatToConsole: false, leakFullStack: false);

        CoresLib.Init(new CoresLibOptions(CoresMode.Application, "TestDev", DebugMode.Debug, defaultPrintStatToConsole: false, defaultRecordLeakFullStack: false), args);
        //CoresLib.Init(new CoresLibOptions(CoresMode.Library, "TestDevLib", DebugMode.ReleaseNoDebugLogs, defaultPrintStatToConsole: false, defaultRecordLeakFullStack: false), args);

        CoresLib.TryUpdateSelfIfNewerVersionIsReleased();

        try
        {
            ret = ConsoleService.EntryPoint(Env.CommandLine, "TestDev", typeof(TestDevAppMain));
        }
        finally
        {
            CoresLib.Free();
        }

        return(ret);
    }
Esempio n. 2
0
        static int Main(string[] args)
        {
            int ret = -1;

            CoresConfig.ApplyHeavyLoadServerConfigAll();

            //Dbg.SetDebugMode(DebugMode.Debug, printStatToConsole: false, leakFullStack: false);

            CoresLib.Init(new CoresLibOptions(CoresMode.Application, "SnmpWork", DebugMode.Debug, defaultPrintStatToConsole: false, defaultRecordLeakFullStack: false), args);

            try
            {
                ret = ConsoleService.EntryPoint(Env.CommandLine, "SnmpWork", typeof(SnmpWorkAppMain));
            }
            finally
            {
                CoresLib.Free();
            }

            return(ret);
        }