Author: bodewig
Date: Thu Dec  1 14:11:09 2011
New Revision: 1209096

URL: http://svn.apache.org/viewvc?rev=1209096&view=rev
Log:
Logical(S|G)etData is available on Mono 2.x as well

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

Modified: logging/log4net/trunk/src/Util/LogicalThreadContextProperties.cs
URL: 
http://svn.apache.org/viewvc/logging/log4net/trunk/src/Util/LogicalThreadContextProperties.cs?rev=1209096&r1=1209095&r2=1209096&view=diff
==============================================================================
--- logging/log4net/trunk/src/Util/LogicalThreadContextProperties.cs (original)
+++ logging/log4net/trunk/src/Util/LogicalThreadContextProperties.cs Thu Dec  1 
14:11:09 2011
@@ -208,7 +208,7 @@ namespace log4net.Util
 #endif
         private static PropertiesDictionary GetCallContextData()
                {
-#if NET_2_0
+#if NET_2_0 || MONO_2_0
             return CallContext.LogicalGetData(c_SlotName) as 
PropertiesDictionary;
 #else
                        return CallContext.GetData(c_SlotName) as 
PropertiesDictionary;
@@ -229,7 +229,7 @@ namespace log4net.Util
 #endif
         private static void SetCallContextData(PropertiesDictionary properties)
                {
-#if NET_2_0
+#if NET_2_0 || MONO_2_0
                        CallContext.LogicalSetData(c_SlotName, properties);
 #else
                        CallContext.SetData(c_SlotName, properties);


Reply via email to