public static GalleryServerProConfigSettings GetGalleryServerProConfigSection() { if (_galleryServerProConfigSection == null) { if (System.Web.HttpContext.Current == null) { _galleryServerProConfigSection = (GalleryServerProConfigSettings)System.Configuration.ConfigurationManager.GetSection("galleryServerPro"); } else { _galleryServerProConfigSection = (GalleryServerProConfigSettings)System.Web.Configuration.WebConfigurationManager.GetSection("system.web/galleryServerPro"); } } return _galleryServerProConfigSection; }
public static GalleryServerProConfigSettings GetGalleryServerProConfigSection() { if (_galleryServerProConfigSection == null) { if (System.Web.HttpContext.Current == null) { _galleryServerProConfigSection = (GalleryServerProConfigSettings)System.Configuration.ConfigurationManager.GetSection("galleryServerPro"); } else { _galleryServerProConfigSection = (GalleryServerProConfigSettings)System.Web.Configuration.WebConfigurationManager.GetSection("system.web/galleryServerPro"); } } return(_galleryServerProConfigSection); }
/// <summary> /// Returns a reference to the galleryServerPro custom configuration section in galleryServerPro.config. /// </summary> /// <returns>Returns a GalleryServerPro.Configuration.GalleryServerProConfigSettings object.</returns> public static GalleryServerPro.Configuration.GalleryServerProConfigSettings GetGalleryServerProConfigSection() { if (_galleryServerProConfigSettings == null) { _galleryServerProConfigSettings = GalleryServerPro.Configuration.ConfigManager.GetGalleryServerProConfigSection(); } return _galleryServerProConfigSettings; }