From: Dion O. <dol...@us...> - 2005-12-11 21:38:10
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19003/magicajax/Core Modified Files: Tag: STABLE MagicAjaxContext.cs Log Message: small bugfix in MagicAjaxVersion property Index: MagicAjaxContext.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjaxContext.cs,v retrieving revision 1.8.2.1 retrieving revision 1.8.2.2 diff -C2 -d -r1.8.2.1 -r1.8.2.2 *** MagicAjaxContext.cs 11 Dec 2005 21:07:52 -0000 1.8.2.1 --- MagicAjaxContext.cs 11 Dec 2005 21:38:02 -0000 1.8.2.2 *************** *** 197,204 **** if (_magicAjaxVersion == null && HttpContext.Current != null) { ! object cachedMagicAjaxVersion = HttpContext.Current.Cache["__MAGIXAJAX_VERSION"]; if (cachedMagicAjaxVersion == null) { ! cachedMagicAjaxVersion = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).FileVersion; } _magicAjaxVersion = (string)cachedMagicAjaxVersion; --- 197,206 ---- if (_magicAjaxVersion == null && HttpContext.Current != null) { ! object cachedMagicAjaxVersion = HttpContext.Current.Cache["__MAGICAJAX_VERSION"]; if (cachedMagicAjaxVersion == null) { ! string assemblyLocation = Assembly.GetExecutingAssembly().Location; ! cachedMagicAjaxVersion = FileVersionInfo.GetVersionInfo(assemblyLocation).FileVersion; ! HttpContext.Current.Cache.Insert("__MAGICAJAX_VERSION", cachedMagicAjaxVersion, new System.Web.Caching.CacheDependency(assemblyLocation)); } _magicAjaxVersion = (string)cachedMagicAjaxVersion; |