Esempio n. 1
0
 static TrinityConfig()
 {
     TrinityC.Ping();
     InternalCalls.__init();
     GetConfigurationInstances().ToList();
     LoadTrinityConfig(false);
 }
Esempio n. 2
0
        static TrinityConfig()
        {
            TrinityC.Ping();
            InternalCalls.__init();

            LoadTrinityConfig(false);
        }
Esempio n. 3
0
        static TrinityConfig()
        {
            TrinityC.Ping();
            InternalCalls.__init();

            LoggingLevel = c_DefaultLogLevel;
            StorageRoot  = DefaultStorageRoot;

            LoadTrinityConfig(false);
        }
Esempio n. 4
0
        private static void Initialize_impl(string config_file = null)
        {
            lock (s_storage_init_lock)
            {
                if (s_master_init_flag)
                {
                    return;
                }

                TrinityC.Init();

                if (config_file != null)
                {
                    TrinityConfig.LoadConfig(config_file);
                }
                else
                {
                    TrinityConfig.EnsureConfig();
                }

                Log.Initialize();

                _LoadGraphEngineExtensions();
                _ScanForTSLStorageExtension();
                _ScanForMemoryCloudExtension();
                _ScanForStartupTasks();
                s_master_init_flag = true;
                BackgroundThread.Start();

                if (TrinityErrorCode.E_SUCCESS != StartEventLoop())
                {
                    throw new Exception("Cannot start worker thread pool");
                }
            }
            try
            {
                Initialized();
            }
            catch
            {
                //TODO log
            }
        }
Esempio n. 5
0
        private static void Initialize_impl(string config_file = null)
        {
            lock (s_storage_init_lock)
            {
                if (s_master_init_flag)
                {
                    return;
                }

                TrinityC.Init();

                if (config_file != null)
                {
                    TrinityConfig.LoadConfig(config_file);
                }
                else
                {
                    TrinityConfig.EnsureConfig();
                }

                Log.Initialize();

                _LoadGraphEngineExtensions();
                _ScanForTSLStorageExtension();
                _ScanForMemoryCloudExtension();
                _ScanForStartupTasks();
                s_master_init_flag = true;
                BackgroundThread.Start();
            }
            try
            {
                Initialized();
            }
            catch
            {
                //TODO log
            }
        }
Esempio n. 6
0
 static CTrinityConfig()
 {
     TrinityC.Init();
 }
Esempio n. 7
0
 static Stdio()
 {
     TrinityC.Init();
 }