Ejemplo n.º 1
0
        private static IConfiguration GetConfiguration(StartupContext context)
        {
            var appFolder = new AppFolderInfo(context);

            return(new ConfigurationBuilder()
                   .AddXmlFile(appFolder.GetConfigPath(), optional: true, reloadOnChange: false)
                   .Build());
        }
Ejemplo n.º 2
0
        private static IConfiguration GetConfiguration(StartupContext context)
        {
            var appFolder = new AppFolderInfo(context);

            return(new ConfigurationBuilder()
                   .AddXmlFile(appFolder.GetConfigPath(), optional: true, reloadOnChange: false)
                   .AddInMemoryCollection(new List <KeyValuePair <string, string> > {
                new ("dataProtectionFolder", appFolder.GetDataProtectionPath())
            })