Skip to content

Instantly share code, notes, and snippets.

@pvandenheede
Last active May 31, 2016 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvandenheede/aba772799d7947cc6b8bc18ae4212453 to your computer and use it in GitHub Desktop.
Save pvandenheede/aba772799d7947cc6b8bc18ae4212453 to your computer and use it in GitHub Desktop.
// Map the application configuration file to the machine configuration file.
Configuration config = ConfigurationManager.OpenMappedMachineConfiguration(configFile);
ConfigurationSectionGroup svcModel = config.SectionGroups.Get("system.serviceModel");
ExtensionsSection extensions = (ExtensionsSection) svcModel.Sections.Get("extensions");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment