* Ifdef out the large bodies of code that will just not work with
Silverlight, ran into this problem again trying to run
http://fluxtools.net/emailphotos
Its not worth trying to alter this implementation of
IsolatedStorage to work in both the regular and the Moonlight
profiles, instead am going to write a simple implementation while
we wait for the real 2.0 API to come out.
svn path=/trunk/mcs/; revision=91511
* IsolatedStorageFile.cs: Loading/saving the identities used to
isolate the storage requires the permission to [de]serialize them too.
svn path=/trunk/mcs/; revision=59201
* IsolatedStorageFile.cs: Only assembly evidences are considered to
resolve policy. Changed resolve method used (instead of changing it's
code).
svn path=/trunk/mcs/; revision=46379
* 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.
svn path=/trunk/mcs/; revision=43544
* IsolatedStorageFile.cs: Added an assert for unrestricted file access
to the class. This is "ok" as the user cannot control the base path
for isolated storage but will be updated to be more "precise" when
imperative assert are supported in the runtime.
* IsolatedStorageFileStream.cs: Changed constructors so the assert
for unrestricted file access is limited to constructors (not the whole
class). Added LinkDemand for UnmanagedCode to get Handle and
SafeFileHandle (2.0) properties.
svn path=/trunk/mcs/; revision=42215
* IsolatedStorageFile.cs: Added CAS demands (imperative when possible)
for IsolatedStoragePermission. The security attributes for NET_2_0 are
commented until #73046 is fixed.
* IsolatedStorageFileStream.cs: Now use StackFrame(2) to find which
assembly is really calling the IsolatedStorageFileStream when no
default is supplied. Throw DirectoryNotFoundException when a directory
inside the isolated storage is missing.
svn path=/trunk/mcs/; revision=41856
* IsolatedStorage.cs: Added checks to get identities.
* IsolatedStorageFile.cs: Added support for identities (assembly,
domain and, for 2.0, application).
* IsolatedStorageFileEnumerator.cs: New. Internal enumerator for
IsolatedStorageFile.
* IsolatedStorageFileStream.cs: Now use the new FileStream
constructor to ensure filestream name stays [Unknown].
* IsolatedStorageInfo.cs: Removed (no more required).
* IsolatedStorageScope.cs: Added new 2.0 scopes: Application and
Machine.
svn path=/trunk/mcs/; revision=39862
set scope in InitStore method, removed need for extra protected
member (public API fix)
* IsolatedStorageFile.cs: use InitStore to initialize scope
svn path=/trunk/mcs/; revision=29080
* IsolatedStorage.cs: More details on MonoTODO. Throw exceptions on
AssemblyIdentity and DomainIdentity properties.
* IsolatedStorageFile.cs: More details on MonoTODO.
* IsolatedStorageFileStream.cs: Removed MonoTODO on class. Now use
Path.Combine to build filenames (constructor) and throw an exception
when we try to get the handle (as documented).
svn path=/trunk/mcs/; revision=27208
the site name.
* IsolatedStorageInfo.cs (CreateAssemblyFilename):
(CreateDomainFilename): Replace String.Format with Path.Combine.
svn path=/trunk/mcs/; revision=16967
(GetStore): Update storage_scope accordingly.
(GetUseStoreForAssembly): Include IsolatedStorageScope.User.
(GetUseStoreForDomain): Include IsolatedStorageScope.User and
IsolatedStorageScope.Assembly.
* IsolatedStorage.cs:
(CurrentSize):
(MaximumSize): throw InvalidOperationExceptions. This is a
subclass responsibility.
(Scope): Implemented using a static field, storage_scope.
(SeparatorInternal)
(SeparatorExternal): Implemented. Use Path.DirectorySeparatorChar
for SeparatorExternal.
svn path=/trunk/mcs/; revision=16915
* IsolatedStorageFile.cs: Added missing [CLSCompliant(false)]
to CurrentSize and MaximumSize to fix compilation (at least
under Windows/csc).
svn path=/trunk/mcs/; revision=10701
Well, a partial implementation, anyway. Enough of an implementation to run
example 21-17 from "Programming C#, 2nd Edition" (O'Reilly Press).
There are several issues remaining, such as proper behavior under Win32 (I'm
sure looking up the HOME environment variable won't be correct) and security
issues (docs suggest that isolated storage should have a limited size to
prevent DOS attacks, and that Isolated Storage is intended to be used by
untrusted apps).
This will suffice as a first pass of the code.
System.IO.FileStream changes are because IsolatedStorageFileStream needed to
override a virtual property, which FileStream didn't expose. (Rather odd,
that.)
svn path=/trunk/mcs/; revision=10694
* RuntimeArgumentHandle.cs: Added to CVS.
2002-02-08 Duncan Mak <[email protected]>
* UriFormatException.cs: Removed TODO attribute, the docs are
probably wrong here. In any case, this code compiles and should work.
2002-02-08 Duncan Mak <[email protected]>
* IsolatedStorage.cs: Looked at MemberInfo.cs, another fellow
abstract class. Oh, that's what it means! Removed unnesscessary
MonoTODO attributes.
svn path=/trunk/mcs/; revision=2276