You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by dp...@apache.org on 2013/08/07 08:54:28 UTC

svn commit: r1511193 - /logging/log4net/trunk/src/Util/ThreadContextProperties.cs

Author: dpsenner
Date: Wed Aug  7 06:54:28 2013
New Revision: 1511193

URL: http://svn.apache.org/r1511193
Log:
LOG4NET-386 added a method in ThreadContextProperties to retrieve the property keys

Modified:
    logging/log4net/trunk/src/Util/ThreadContextProperties.cs

Modified: logging/log4net/trunk/src/Util/ThreadContextProperties.cs
URL: http://svn.apache.org/viewvc/logging/log4net/trunk/src/Util/ThreadContextProperties.cs?rev=1511193&r1=1511192&r2=1511193&view=diff
==============================================================================
--- logging/log4net/trunk/src/Util/ThreadContextProperties.cs (original)
+++ logging/log4net/trunk/src/Util/ThreadContextProperties.cs Wed Aug  7 06:54:28 2013
@@ -114,6 +114,22 @@ namespace log4net.Util
 		}
 
 		/// <summary>
+		/// Get the keys stored in the properties.
+		/// </summary>
+		/// <para>
+		/// Gets the keys stored in the properties.
+		/// </para>
+		/// <returns>a set of the defined keys</returns>
+		public string[] GetKeys()
+		{
+			if (_dictionary != null)
+			{
+				return _dictionary.GetKeys();
+			}
+			return null;
+		}
+
+		/// <summary>
 		/// Clear all properties
 		/// </summary>
 		/// <remarks>