private SharedInfo(AppConfig config, ISettings settings) { _config = config; _settings = settings; Update(); }
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)); }