Пример #1
0
 private IStorageProviderReader CreateStorageProvider(string sectionName)
 {
     using (ConfigurationContext configurationContext = CreateContext())
     {
         StorageProviderFactory factory = new StorageProviderFactory(configurationContext);
         return(factory.Create(sectionName));
     }
 }
Пример #2
0
 private IStorageProviderReader CreateStorageProvider(string sectionName)
 {
     using (ConfigurationContext configurationContext = CreateContext())
     {
         StorageProviderFactory factory = new StorageProviderFactory(configurationContext);
         return factory.Create(sectionName);
     }
 }