Esempio n. 1
0
        protected override void Initialize()
        {
            object set = settProvider.RestoreSettings(settings.GetType());
            if (set != null)
                settings = (ServerSettings)set;

            Logger.Info("Loading plugins...");
            foreach (string plugin in settings.Plugins)
                LoadPlugin(plugin);

            if (settings.AcquireOnStart)
            {
                Process = ProcessHelper.GetProcess(settings.EndPoint);
                if (Process != null)
                    Logger.Info("Process acquired...");
                else
                    Logger.Info("Process not found...");
            }

            lastIteration = DateTime.Now;
        }
Esempio n. 2
0
        public Server(string Name)
            : base(Name, SC.Interfaces.ServerConstants.ALL_PERMISSIONS)
        {
            Logger = log4net.LogManager.GetLogger("Server " + Name);

            settProvider = new SC.Settings.SettingsProvider(Name);

            settings = ServerSettings.Empty;
            settings.Name = Name;
        }