Add conditionals where needed.
[mono.git] / mcs / class / referencesource / System / net / System / Net / _LoggingObject.cs
index cdcab1730c77b6b2d1cb672688f655eea9382d4d..c452c8121a03688863c3044ee40b0d1db7979e17 100644 (file)
@@ -617,12 +617,14 @@ namespace System.Net {
         [ReliabilityContract(Consistency.MayCorruptAppDomain, Cer.None)]
         private static BaseLoggingObject LoggingInitialize() {
 
+#if MONO_FEATURE_WEB_STACK
 #if DEBUG
             if (GetSwitchValue("SystemNetLogging", "System.Net logging module", false) &&
                 GetSwitchValue("SystemNetLog_ConnectionMonitor", "System.Net connection monitor thread", false)) {
                 InitConnectionMonitor();
             }
 #endif // DEBUG
+#endif // MONO_FEATURE_WEB_STACK
 #if TRAVE
             // by default we'll log to c:\temp\ so that non interactive services (like w3wp.exe) that don't have environment
             // variables can easily be debugged, note that the ACLs of the directory might need to be adjusted
@@ -978,7 +980,9 @@ namespace System.Net {
 #if DEBUG && !STRESS
                 Debug.Assert(false, message, detailMessage);
 #else
+#if MONO_NOT_IMPLEMENTED
                 UnsafeNclNativeMethods.DebugBreak();
+#endif
                 Debugger.Break();
 #endif
             }
@@ -1055,6 +1059,8 @@ namespace System.Net {
 #endif
         }
 
+#if MONO_FEATURE_WEB_STACK
+
 #if DEBUG
         private class HttpWebRequestComparer : IComparer {
             public int Compare(
@@ -1213,5 +1219,6 @@ namespace System.Net {
             }
 #endif
         }
+#endif
     } // class GlobalLog
 } // namespace System.Net