Пример #1
0
        public static void Init(String version, String optionsFilename,
                                ILogManager defaultLog, IShutdown shutdown,
                                ICallbackManager callbacks,
                                IServerManager servers,
                                MeasureStringControl measure,
                                String defaultRegistryLoc)
        {
            _versionString = version;

            _defaultLogManager = defaultLog;
            _shutdownMethod    = shutdown;
            _callbackManager   = callbacks;
            _serverManager     = servers;
            _measureControl    = measure;

            _applianceFrameMap = new Hashtable();

            _store = new PUC.PersistentData.DataStore(optionsFilename);

            if (!_store.IsKeyValid(Globals.REGISTRY_FILE_ATTR))
            {
                _store.Set(Globals.REGISTRY_FILE_ATTR, defaultRegistryLoc);
                _store.Set(Globals.RECENT_SERVER_ATTR, 10);
                _store.Set(Globals.RECENT_COUNT_ATTR, 0);
            }
        }