Author: spouliot
Date: 2005-04-25 09:06:17 -0400 (Mon, 25 Apr 2005)
New Revision: 43544

Modified:
   trunk/mcs/class/corlib/System.IO.IsolatedStorage/ChangeLog
   
trunk/mcs/class/corlib/System.IO.IsolatedStorage/INormalizeForIsolatedStorage.cs
   trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorage.cs
   trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageException.cs
   trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFile.cs
   trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFileStream.cs
   trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageScope.cs
Log:
2005-04-25  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * INormalizeForIsolatedStorage.cs: Added [ComVisible(true)] for 2.0.
        * IsolatedStorage.cs: Added [ComVisible(true)] for 2.0 except for new
        property ApplicationIdentity.
        * IsolatedStorageException.cs: Added [ComVisible(true)] for 2.0.
        * IsolatedStorageFile.cs: Now calls UnprotectedGetEvidence to get the 
        assembly evidences. Added [ComVisible(true)] for 2.0.
        * IsolatedStorageFileStream.cs: Added [ComVisible(true)] for 2.0.
        * IsolatedStorageScope.cs: Added [ComVisible(true)] for 2.0.



Modified: trunk/mcs/class/corlib/System.IO.IsolatedStorage/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.IO.IsolatedStorage/ChangeLog  2005-04-25 
13:05:56 UTC (rev 43543)
+++ trunk/mcs/class/corlib/System.IO.IsolatedStorage/ChangeLog  2005-04-25 
13:06:17 UTC (rev 43544)
@@ -1,3 +1,14 @@
+2005-04-25  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * INormalizeForIsolatedStorage.cs: Added [ComVisible(true)] for 2.0.
+       * IsolatedStorage.cs: Added [ComVisible(true)] for 2.0 except for new
+       property ApplicationIdentity.
+       * IsolatedStorageException.cs: Added [ComVisible(true)] for 2.0.
+       * IsolatedStorageFile.cs: Now calls UnprotectedGetEvidence to get the 
+       assembly evidences. Added [ComVisible(true)] for 2.0.
+       * IsolatedStorageFileStream.cs: Added [ComVisible(true)] for 2.0.
+       * IsolatedStorageScope.cs: Added [ComVisible(true)] for 2.0.
+
 2005-03-24  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * IsolatedStorageFile.cs: Added an assert for unrestricted file access

Modified: 
trunk/mcs/class/corlib/System.IO.IsolatedStorage/INormalizeForIsolatedStorage.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.IO.IsolatedStorage/INormalizeForIsolatedStorage.cs
    2005-04-25 13:05:56 UTC (rev 43543)
+++ 
trunk/mcs/class/corlib/System.IO.IsolatedStorage/INormalizeForIsolatedStorage.cs
    2005-04-25 13:06:17 UTC (rev 43544)
@@ -5,11 +5,8 @@
 //   Duco Fijma ([EMAIL PROTECTED])
 //
 //   (c) 2002 Duco Fijma
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // "Software"), to deal in the Software without restriction, including
@@ -30,8 +27,13 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.IO.IsolatedStorage {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public interface INormalizeForIsolatedStorage {
 
                object Normalize ();

Modified: trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorage.cs
===================================================================
--- trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorage.cs 
2005-04-25 13:05:56 UTC (rev 43543)
+++ trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorage.cs 
2005-04-25 13:06:17 UTC (rev 43544)
@@ -30,12 +30,16 @@
 
 using System.Globalization;
 using System.Reflection;
+using System.Runtime.InteropServices;
 using System.Security;
 using System.Security.Permissions;
 using System.Security.Policy;
 
 namespace System.IO.IsolatedStorage {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public abstract class IsolatedStorage : MarshalByRefObject {
 
                // Constructor
@@ -53,6 +57,7 @@
 
 #if NET_2_0
                [MonoTODO ("requires manifest support")]
+               [ComVisible (false)]
                public object ApplicationIdentity {
                        [SecurityPermission (SecurityAction.Demand, 
ControlPolicy=true)]
                        get {

Modified: 
trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageException.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageException.cs    
    2005-04-25 13:05:56 UTC (rev 43543)
+++ 
trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageException.cs    
    2005-04-25 13:06:17 UTC (rev 43544)
@@ -4,11 +4,8 @@
 // Author: Duncan Mak ([EMAIL PROTECTED])
 //
 // (C) 2002, Ximian, Inc. http://www.ximian.com
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // "Software"), to deal in the Software without restriction, including
@@ -30,11 +27,15 @@
 //
 
 using System.Globalization;
+using System.Runtime.InteropServices;
 using System.Runtime.Serialization;
 
 namespace System.IO.IsolatedStorage
 {
        [Serializable]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
         public class IsolatedStorageException : Exception
        {
                public IsolatedStorageException ()

Modified: 
trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFile.cs
===================================================================
--- trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFile.cs     
2005-04-25 13:05:56 UTC (rev 43543)
+++ trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFile.cs     
2005-04-25 13:06:17 UTC (rev 43544)
@@ -30,6 +30,7 @@
 
 using System.Collections;
 using System.Reflection;
+using System.Runtime.InteropServices;
 using System.Runtime.Serialization.Formatters.Binary;
 using System.Security;
 using System.Security.Cryptography;
@@ -45,6 +46,9 @@
        // much as a directory
 
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        // FIXME: Further limit the assertion when imperative Assert is 
implemented
        [FileIOPermission (SecurityAction.Assert, Unrestricted = true)]
        public sealed class IsolatedStorageFile : IsolatedStorage, IDisposable {
@@ -134,7 +138,8 @@
                                storageFile._domainIdentity = 
GetTypeFromEvidence (AppDomain.CurrentDomain.Evidence, domainEvidenceType);
                        }
                        if ((scope & IsolatedStorageScope.Assembly) != 0) {
-                               storageFile._assemblyIdentity = 
GetTypeFromEvidence (Assembly.GetCallingAssembly ().Evidence, 
assemblyEvidenceType);
+                               Evidence e = Assembly.GetCallingAssembly 
().UnprotectedGetEvidence ();
+                               storageFile._assemblyIdentity = 
GetTypeFromEvidence (e, assemblyEvidenceType);
                        }
                        storageFile.PostInit ();
                        return storageFile;
@@ -176,7 +181,8 @@
                {
                        IsolatedStorageScope scope = 
IsolatedStorageScope.Machine | IsolatedStorageScope.Assembly;
                        IsolatedStorageFile storageFile = new 
IsolatedStorageFile (scope);
-                       storageFile._assemblyIdentity = 
GetAssemblyIdentityFromEvidence (Assembly.GetCallingAssembly ().Evidence);
+                       Evidence e = Assembly.GetCallingAssembly 
().UnprotectedGetEvidence ();
+                       storageFile._assemblyIdentity = 
GetAssemblyIdentityFromEvidence (e);
                        storageFile.PostInit ();
                        return storageFile;
                }
@@ -187,7 +193,8 @@
                        IsolatedStorageScope scope = 
IsolatedStorageScope.Machine | IsolatedStorageScope.Domain | 
IsolatedStorageScope.Assembly;
                        IsolatedStorageFile storageFile = new 
IsolatedStorageFile (scope);
                        storageFile._domainIdentity = 
GetDomainIdentityFromEvidence (AppDomain.CurrentDomain.Evidence);
-                       storageFile._assemblyIdentity = 
GetAssemblyIdentityFromEvidence (Assembly.GetCallingAssembly ().Evidence);
+                       Evidence e = Assembly.GetCallingAssembly 
().UnprotectedGetEvidence ();
+                       storageFile._assemblyIdentity = 
GetAssemblyIdentityFromEvidence (e);
                        storageFile.PostInit ();
                        return storageFile;
                }
@@ -207,7 +214,8 @@
                {
                        IsolatedStorageScope scope = IsolatedStorageScope.User 
| IsolatedStorageScope.Assembly;
                        IsolatedStorageFile storageFile = new 
IsolatedStorageFile (scope);
-                       storageFile._assemblyIdentity = 
GetAssemblyIdentityFromEvidence (Assembly.GetCallingAssembly ().Evidence);
+                       Evidence e = Assembly.GetCallingAssembly 
().UnprotectedGetEvidence ();
+                       storageFile._assemblyIdentity = 
GetAssemblyIdentityFromEvidence (e);
                        storageFile.PostInit ();
                        return storageFile;
                }
@@ -218,7 +226,8 @@
                        IsolatedStorageScope scope = IsolatedStorageScope.User 
| IsolatedStorageScope.Domain | IsolatedStorageScope.Assembly;
                        IsolatedStorageFile storageFile = new 
IsolatedStorageFile (scope);
                        storageFile._domainIdentity = 
GetDomainIdentityFromEvidence (AppDomain.CurrentDomain.Evidence);
-                       storageFile._assemblyIdentity = 
GetAssemblyIdentityFromEvidence (Assembly.GetCallingAssembly ().Evidence);
+                       Evidence e = Assembly.GetCallingAssembly 
().UnprotectedGetEvidence ();
+                       storageFile._assemblyIdentity = 
GetAssemblyIdentityFromEvidence (e);
                        storageFile.PostInit ();
                        return storageFile;
                }

Modified: 
trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFileStream.cs
===================================================================
--- 
trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFileStream.cs   
    2005-04-25 13:05:56 UTC (rev 43543)
+++ 
trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageFileStream.cs   
    2005-04-25 13:06:17 UTC (rev 43544)
@@ -35,11 +35,15 @@
 using System.Security.Permissions;
 
 #if NET_2_0
+using System.Runtime.InteropServices;
 using Microsoft.Win32.SafeHandles;
 #endif
 
 namespace System.IO.IsolatedStorage {
 
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public class IsolatedStorageFileStream : FileStream {
 
                [ReflectionPermission (SecurityAction.Assert, TypeInformation = 
true)]
@@ -57,7 +61,7 @@
                                StackFrame sf = new StackFrame (3); // skip 
self and constructor
                                isf = IsolatedStorageFile.GetStore 
(IsolatedStorageScope.User | IsolatedStorageScope.Domain | 
IsolatedStorageScope.Assembly,
                                        
IsolatedStorageFile.GetDomainIdentityFromEvidence 
(AppDomain.CurrentDomain.Evidence), 
-                                       
IsolatedStorageFile.GetAssemblyIdentityFromEvidence (sf.GetMethod 
().ReflectedType.Assembly.Evidence));
+                                       
IsolatedStorageFile.GetAssemblyIdentityFromEvidence (sf.GetMethod 
().ReflectedType.Assembly.UnprotectedGetEvidence ()));
                        }
 
                        // ensure that the _root_ isolated storage can be (and 
is) created.

Modified: 
trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageScope.cs
===================================================================
--- trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageScope.cs    
2005-04-25 13:05:56 UTC (rev 43543)
+++ trunk/mcs/class/corlib/System.IO.IsolatedStorage/IsolatedStorageScope.cs    
2005-04-25 13:06:17 UTC (rev 43544)
@@ -30,9 +30,14 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Runtime.InteropServices;
+
 namespace System.IO.IsolatedStorage {
 
        [Flags]
+#if NET_2_0
+       [ComVisible (true)]
+#endif
        public enum IsolatedStorageScope {
 
                None = 0,

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

Reply via email to