Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var instanceBuilder = new InstanceBuilder();

            instanceBuilder.Register <ISerializer, XmlSerializer>();
            instanceBuilder.Register <ISettingsManager, SettingsManager>();

            var settingsManager = instanceBuilder.Resolve <ISettingsManager>();

            var setting = settingsManager.GetSetting <int>("Age", SettingScope.CurrentUser, 10);

            setting.Value += 1;
            settingsManager.Save();
        }