コード例 #1
0
ファイル: ConfigManager.cs プロジェクト: haimon74/KanNaim
		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;
		}
コード例 #2
0
ファイル: ConfigManager.cs プロジェクト: ericjbeltran/2009
        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);
        }
コード例 #3
0
ファイル: WebController.cs プロジェクト: haimon74/KanNaim
		/// <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;
		}