Author: atsushi
Date: 2007-11-21 02:53:19 -0500 (Wed, 21 Nov 2007)
New Revision: 90065

Modified:
   trunk/mcs/class/corlib/System/AppDomain.cs
   trunk/mcs/class/corlib/System/ChangeLog
   trunk/mcs/class/corlib/System/ContextMarshalException.cs
Log:
2007-11-21  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * AppDomain.cs : filled 2.0 API (extra ones are from 2.0 SP1).
        * ContextMarshalException.cs : obsolete in 2.0.



Modified: trunk/mcs/class/corlib/System/AppDomain.cs
===================================================================
--- trunk/mcs/class/corlib/System/AppDomain.cs  2007-11-21 07:21:25 UTC (rev 
90064)
+++ trunk/mcs/class/corlib/System/AppDomain.cs  2007-11-21 07:53:19 UTC (rev 
90065)
@@ -59,6 +59,7 @@
 
 #if NET_2_0
        [ComVisible (true)]
+       [ComDefaultInterface (typeof (_AppDomain))]
 #endif
        [ClassInterface(ClassInterfaceType.None)]
        public sealed class AppDomain : MarshalByRefObject , _AppDomain , 
IEvidenceFactory
@@ -102,6 +103,13 @@
                        }
                }
 
+#if NET_2_0
+               [MonoTODO]
+               public ApplicationTrust ApplicationTrust {
+                       get { throw new NotImplementedException (); }
+               }
+#endif
+
                public string BaseDirectory {
                        get {
                                string path = 
SetupInformationNoCopy.ApplicationBase;
@@ -254,6 +262,9 @@
                        SetupInformationNoCopy.PrivateBinPath = String.Empty;
                }
 
+#if NET_2_0
+               [Obsolete ("Use AppDomainSetup.ShadowCopyDirectories")]
+#endif
                [SecurityPermission (SecurityAction.LinkDemand, 
ControlAppDomain = true)]
                public void ClearShadowCopyPath ()
                {
@@ -607,6 +618,9 @@
                        _granted = ps.PermissionSet;
                }
 
+#if NET_2_0
+               [Obsolete ("Use AppDomainSetup.SetCachePath")]
+#endif
                [SecurityPermission (SecurityAction.LinkDemand, 
ControlAppDomain = true)]
                public void SetCachePath (string path)
                {
@@ -623,12 +637,18 @@
                        _principal = null;
                }
 
+#if NET_2_0
+               [Obsolete ("Use AppDomainSetup.ShadowCopyFiles")]
+#endif
                [SecurityPermission (SecurityAction.LinkDemand, 
ControlAppDomain = true)]
                public void SetShadowCopyFiles()
                {
                        SetupInformationNoCopy.ShadowCopyFiles = "true";
                }
 
+#if NET_2_0
+               [Obsolete ("Use AppDomainSetup.ShadowCopyDirectories")]
+#endif
                [SecurityPermission (SecurityAction.LinkDemand, 
ControlAppDomain = true)]
                public void SetShadowCopyPath (string path)
                {
@@ -809,6 +829,15 @@
                        return CreateDomain (friendlyName, securityInfo, info);
                }
 
+#if NET_2_0
+               [MonoTODO]
+               public static AppDomain CreateDomain (string friendlyName, 
Evidence securityInfo, AppDomainSetup info,
+                                                     PermissionSet grantSet, 
params StrongName [] fullTrustAssemblies)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
+
                [MethodImplAttribute (MethodImplOptions.InternalCall)]
                private static extern bool InternalIsFinalizingForUnload (int 
domain_id);
 
@@ -843,6 +872,17 @@
                [SecurityPermission (SecurityAction.LinkDemand, 
ControlAppDomain = true)]
                public extern void SetData (string name, object data);
 
+#if NET_2_0
+               [MonoTODO]
+               public void SetData (string name, object data, IPermission 
permission)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
+
+#if NET_2_0
+               [Obsolete ("Use AppDomainSetup.DynamicBase")]
+#endif
                [SecurityPermission (SecurityAction.LinkDemand, 
ControlAppDomain = true)]
                public void SetDynamicBase (string path)
                {

Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2007-11-21 07:21:25 UTC (rev 
90064)
+++ trunk/mcs/class/corlib/System/ChangeLog     2007-11-21 07:53:19 UTC (rev 
90065)
@@ -1,5 +1,10 @@
 2007-11-21  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
+       * AppDomain.cs : filled 2.0 API (extra ones are from 2.0 SP1).
+       * ContextMarshalException.cs : obsolete in 2.0.
+
+2007-11-21  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
        * MarshalByRefObject.cs : Added MemberwiseClose() stub.
          GetLifetimeService() is not virtual (in both 2.0 and 1.1).
        * Console.cs : implemented missing 2.0 key members.

Modified: trunk/mcs/class/corlib/System/ContextMarshalException.cs
===================================================================
--- trunk/mcs/class/corlib/System/ContextMarshalException.cs    2007-11-21 
07:21:25 UTC (rev 90064)
+++ trunk/mcs/class/corlib/System/ContextMarshalException.cs    2007-11-21 
07:53:19 UTC (rev 90065)
@@ -39,6 +39,7 @@
        [Serializable]
 #if NET_2_0
        [ComVisible (true)]
+       [Obsolete ("this type is obsoleted in 2.0 profile")]
 #endif
        public class ContextMarshalException : SystemException
        {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to