// default (at least for SL4) is to return false for unknown values (can't get a null out of it)
return false;
}
+
+ [MonoTODO ("Currently always returns false")]
+ public static bool MonitoringIsEnabled {
+ get { return false; }
+ set { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public long MonitoringSurvivedMemorySize {
+ get { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public static long MonitoringSurvivedProcessMemorySize {
+ get { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public long MonitoringTotalAllocatedMemorySize {
+ get { throw new NotImplementedException (); }
+ }
+
+ [MonoTODO]
+ public TimeSpan MonitoringTotalProcessorTime {
+ get { throw new NotImplementedException (); }
+ }
#endif
}
}
+2010-03-25 Sebastien Pouliot <sebastien@ximian.com>
+
+ * AppDomain.cs: Add new properties that are in both FX4 and SL4
+ since Moonlight needs them (for testing purpose).
+ * Environment.cs: FailFast overloads are present in SL4 (and also
+ needed for testing Moonlight)
+
2010-03-24 Sebastien Pouliot <sebastien@ximian.com>
* AppDomain.cs: Change default value from null to false for new
[MethodImplAttribute (MethodImplOptions.InternalCall)]
internal static extern void InternalSetEnvironmentVariable (string variable, string value);
-
+#endif
[SecurityPermission (SecurityAction.LinkDemand, UnmanagedCode=true)]
public static void FailFast (string message)
{
throw new NotImplementedException ();
}
-#endif
-#if NET_4_0
+
+#if NET_4_0 || MOONLIGHT
[SecurityCritical]
public static void FailFast (string message, Exception exception)
{
throw new NotImplementedException ();
}
+#endif
+#if NET_4_0
public static bool Is64BitOperatingSystem {
get { return IntPtr.Size == 8; } // FIXME: is this good enough?
}