Exemple #1
0
 /// <summary>
 /// Initializes the PropertyManager.
 /// Run this only once per server instance.
 /// </summary>
 /// <param name="loadDefaultValues">Should we use the DefaultPropertyManager to load the default properties for keys?</param>
 public static void Initialize(bool loadDefaultValues = true)
 {
     if (loadDefaultValues)
     {
         DefaultPropertyManager.LoadDefaultProperties();
     }
     LoadPropertiesFromDB();
     _workerThread           = new Timer(300000);
     _workerThread.Elapsed  += DoWork;
     _workerThread.AutoReset = true;
     _workerThread.Start();
 }
Exemple #2
0
        /// <summary>
        /// Initializes the PropertyManager.
        /// Run this only once per server instance.
        /// </summary>
        /// <param name="loadDefaultValues">Should we use the DefaultPropertyManager to load the default properties for keys?</param>
        public static void Initialize(bool loadDefaultValues = true)
        {
            if (loadDefaultValues)
            {
                DefaultPropertyManager.LoadDefaultProperties();
            }

            LoadPropertiesFromDB();

            if (Program.IsRunningInContainer && !GetString("content_folder").Equals("/ace/Content"))
            {
                ModifyString("content_folder", "/ace/Content");
            }

            _workerThread           = new Timer(300000);
            _workerThread.Elapsed  += DoWork;
            _workerThread.AutoReset = true;
            _workerThread.Start();
        }