private static SAFConfigurationParametersMap _CheckCache(int cacheSecs)
        {
            AppDomain domainCurr  = AppDomain.CurrentDomain;
            bool      needsUpdate = false;
            SAFConfigurationParametersMap result;

            try
            {
                SAFConfigurationParametersMap cacheData = (SAFConfigurationParametersMap)domainCurr.GetData("SAFConfigurationDomainCache");
                if (cacheData == null)
                {
                    needsUpdate = true;
                }
                else
                {
                    double totSecs = (DateTime.UtcNow - cacheData.LastUpdate).TotalSeconds;
                    if (totSecs > (double)cacheSecs || totSecs < 0.0)
                    {
                        needsUpdate = true;
                    }
                }
                if (needsUpdate)
                {
                    cacheData = new SAFConfigurationDAO().GetAllParametersFromDB();
                    if (cacheData == null)
                    {
                        result = null;
                        return(result);
                    }
                    cacheData.LastUpdate = DateTime.UtcNow;
                    domainCurr.SetData("SAFConfigurationDomainCache", cacheData);
                }
                result = cacheData;
            }
            catch
            {
                result = null;
            }
            finally
            {
            }
            return(result);
        }
		private static SAFConfigurationParametersMap _CheckCache(int cacheSecs)
		{
			AppDomain domainCurr = AppDomain.CurrentDomain;
			bool needsUpdate = false;
			SAFConfigurationParametersMap result;
			try
			{
				SAFConfigurationParametersMap cacheData = (SAFConfigurationParametersMap)domainCurr.GetData("SAFConfigurationDomainCache");
				if (cacheData == null)
				{
					needsUpdate = true;
				}
				else
				{
					double totSecs = (DateTime.UtcNow - cacheData.LastUpdate).TotalSeconds;
					if (totSecs > (double)cacheSecs || totSecs < 0.0)
					{
						needsUpdate = true;
					}
				}
				if (needsUpdate)
				{
					cacheData = new SAFConfigurationDAO().GetAllParametersFromDB();
					if (cacheData == null)
					{
						result = null;
						return result;
					}
					cacheData.LastUpdate = DateTime.UtcNow;
					domainCurr.SetData("SAFConfigurationDomainCache", cacheData);
				}
				result = cacheData;
			}
			catch
			{
				result = null;
			}
			finally
			{
			}
			return result;
		}