Esempio n. 1
0
        private static ConfigurationProvider InitializeConfigurationProvider(ConfigSettingsRoot configSettingsRoot)
        {
            var configurationRoot = new ConfigurationBuilder()
                                    .AddAsJsonRoot(configSettingsRoot)
                                    .Build();

            return(new ConfigurationProvider(configurationRoot));
        }
Esempio n. 2
0
        private static ConfigurationProvider InitializeConfigurationProvider(DeviceServiceSettings deviceServiceSettings, AppSettings appSettings)
        {
            var configSettingsRoot = new ConfigSettingsRoot
            {
                AppSettings   = appSettings,
                DeviceService = deviceServiceSettings
            };

            return(InitializeConfigurationProvider(configSettingsRoot));
        }