Exemple #1
0
        private void AddInMemorySettings(EnvironmentConfig config)
        {
            var builder = new ConfigurationBuilder();

            var dict = new Dictionary <string, string>
            {
                { "App:MainWindow:Height", "20" },
                { "App:MainWindow:Width", "50" },
                { "App:MainWindows:ValidatedValue", "3" },
                { "App:MainWindow:Dialog:Colors:Frame", "RED" },
                { "App:MainWindow:Dialog:Colors:Title", "DARK_RED" }
            };

            builder.AddInMemoryCollection(dict);

            config.UseConfiguration(builder.Build());
        }