logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject cvs commit: logging-log4net/src/Core WrapperMap.cs
Date Sun, 19 Dec 2004 19:23:13 GMT
nicko       2004/12/19 11:23:13

  Modified:    src/Core WrapperMap.cs
  Log:
  Updates suggested by FxCop.
  Minor naming changes to internal types.
  Perf improvements to type check + type cast code.
  
  Revision  Changes    Path
  1.7       +3 -2      logging-log4net/src/Core/WrapperMap.cs
  
  Index: WrapperMap.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/Core/WrapperMap.cs,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- WrapperMap.cs	6 Dec 2004 02:20:06 -0000	1.6
  +++ WrapperMap.cs	19 Dec 2004 19:23:13 -0000	1.7
  @@ -226,10 +226,11 @@
   		/// <param name="e">The event args.</param>
   		private void ILoggerRepository_Shutdown(object sender, EventArgs e)
   		{
  -			if (sender is ILoggerRepository)
  +			ILoggerRepository repository = sender as ILoggerRepository;
  +			if (repository != null)
   			{
   				// Remove all repository from map
  -				RepositoryShutdown((ILoggerRepository)sender);
  +				RepositoryShutdown(repository);
   			}
   		}
   
  
  
  

Mime
View raw message