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/Config BasicConfigurator.cs
Date Sun, 19 Dec 2004 19:22:30 GMT
nicko       2004/12/19 11:22:30

  Modified:    src/Config BasicConfigurator.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/Config/BasicConfigurator.cs
  
  Index: BasicConfigurator.cs
  ===================================================================
  RCS file: /home/cvs/logging-log4net/src/Config/BasicConfigurator.cs,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- BasicConfigurator.cs	23 Nov 2004 01:37:29 -0000	1.6
  +++ BasicConfigurator.cs	19 Dec 2004 19:22:30 -0000	1.7
  @@ -137,9 +137,10 @@
   		/// </remarks>
   		static public void Configure(ILoggerRepository repository, IAppender appender) 
   		{
  -			if (repository is IBasicRepositoryConfigurator)
  +			IBasicRepositoryConfigurator configurableRepository = repository as IBasicRepositoryConfigurator;
  +			if (configurableRepository != null)
   			{
  -				((IBasicRepositoryConfigurator)repository).Configure(appender);
  +				configurableRepository.Configure(appender);
   			}
   			else
   			{
  
  
  

Mime
View raw message