Пример #1
0
        private SharedInfo(AppConfig config, ISettings settings)
        {
            _config = config;
            _settings = settings;

            Update();
        }
Пример #2
0
        private static SharedInfo Create(AppConfig config, ISettings settings)
        {
            if (settings == null)
                throw new ArgumentNullException("settings");

            if (config == null)
                throw new ArgumentNullException("config");

            return _instance = (_instance ?? new SharedInfo(config, settings));
        }