コード例 #1
0
        public static ILocalizationInfoStorageContainer GetStorageContainer()
        {
            if (_localizationInfoStorageContainer != null) 
                return _localizationInfoStorageContainer;

            if (HttpContext.Current == null)
                _localizationInfoStorageContainer = new ThreadLocalizationInfoStorageContainer();
            else
                _localizationInfoStorageContainer = new HttpLocalizationInfoStorageContainer();

            return _localizationInfoStorageContainer;
        }
コード例 #2
0
        public static ILocalizationInfoStorageContainer GetStorageContainer()
        {
            if (_localizationInfoStorageContainer != null)
            {
                return(_localizationInfoStorageContainer);
            }

            if (HttpContext.Current == null)
            {
                _localizationInfoStorageContainer = new ThreadLocalizationInfoStorageContainer();
            }
            else
            {
                _localizationInfoStorageContainer = new HttpLocalizationInfoStorageContainer();
            }

            return(_localizationInfoStorageContainer);
        }