Commit Graph
39 Commits
Author SHA1 Message Date
Sebastien Pouliot c74becbfc7 2008-01-17 Sebastien Pouliot <[email protected]>
* IsolatedStorageFile.cs: Fix bug #354539


svn path=/trunk/mcs/; revision=93209
2008-01-17 22:00:31 +00:00
Miguel de Icaza 4e9b71ab2c Add early implementation (will be redone with 2.0 anyways) of IsolatedStorage
svn path=/trunk/mcs/; revision=91813
2007-12-22 21:51:54 +00:00
Stephane Delcroix 2b8e316bd9 2007-12-18 Stephane Delcroix <[email protected]>
* IsolatedStorageFileEnumerator.cs: Ifdef'ing out too. Fixes the build.

svn path=/trunk/mcs/; revision=91512
2007-12-18 08:39:06 +00:00
Miguel de Icaza efd62ae019 2007-12-18 Miguel de Icaza <[email protected]>
* 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
2007-12-18 05:59:49 +00:00
Sebastien Pouliot 17cb61ab8b 2007-11-06 Sebastien Pouliot <[email protected]>
* IsolatedStorageFileStream.cs: Handle rooted paths. Patch by Jay
	Miller to fix bug #324983.


svn path=/trunk/mcs/; revision=89015
2007-11-06 18:15:44 +00:00
Sebastien Pouliot babb4610e0 2006-04-07 Sebastien Pouliot <[email protected]>
* 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
2006-04-07 17:52:43 +00:00
Sebastien Pouliot dd4c9f87dd 2005-11-09 Sebastien Pouliot <[email protected]>
* IsolatedStorageScope.cs: Added missing [Serializable] in 2.0 profile


svn path=/trunk/mcs/; revision=52790
2005-11-09 16:09:41 +00:00
Sebastien Pouliot dd8226d726 2005-10-04 Sebastien Pouliot <[email protected]>
* IsolatedStorageFile.cs: Add a call to GC.SuppressFinalize in Dispose
	(even if we're not disposing anything).


svn path=/trunk/mcs/; revision=51199
2005-10-04 19:46:38 +00:00
Sebastien Pouliot 4d7f33bcd9 2005-06-22 Sebastien Pouliot <[email protected]>
* 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
2005-06-22 18:38:14 +00:00
Sebastien Pouliot 86211f5b4d 2005-06-14 Sebastien Pouliot <[email protected]>
* IsolatedStorageFileStream.cs: Remove Close method from NET_2_0.
	* IsolatedStorageFile.cs: Implemented missing MaximumSize property
	and GetPermission method.


svn path=/trunk/mcs/; revision=45971
2005-06-14 14:21:49 +00:00
Gonzalo Paniagua Javier f243382dfd 2005-06-05 Gonzalo Paniagua Javier <[email protected]>
* IsolatedStorageFileStream.cs: check the FileMode here as FileStream
	throws a different exception.


svn path=/trunk/mcs/; revision=45459
2005-06-06 02:01:30 +00:00
Raja R Harinath e0cfa4925e Set svn:eol-style=native, delete svn:executable.
Fix line endings of System/Decimal.cs (only actual "change" in text, to force recompile of mscorlib to reflect changes in decimal constant handling in the compiler)


svn path=/trunk/mcs/; revision=44558
2005-05-16 12:23:26 +00:00
Sebastien Pouliot c5b44e27ae 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.


svn path=/trunk/mcs/; revision=43544
2005-04-25 13:06:17 +00:00
Sebastien Pouliot 028952d395 2005-03-24 Sebastien Pouliot <[email protected]>
* 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
2005-03-24 14:24:38 +00:00
Sebastien Pouliot dad261e68f 2005-03-17 Sebastien Pouliot <[email protected]>
* IsolatedStorageScope.cs: Add missing BOOTSTRAP_NET_2_0 to new enum 
	values. Fix #73046.
	* IsolatedStorageFile.cs: Remove commented security attributes.


svn path=/trunk/mcs/; revision=41959
2005-03-17 19:43:32 +00:00
Sebastien Pouliot 70b9253052 2005-03-15 Sebastien Pouliot <[email protected]>
* 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
2005-03-15 21:07:29 +00:00
Sebastien Pouliot e6073ae096 2005-01-31 Sebastien Pouliot <[email protected]>
* 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
2005-01-31 18:44:52 +00:00
Gonzalo Paniagua Javier 587cecdb0c 2004-07-11 Gonzalo Paniagua Javier <[email protected]>
* IsolatedStorageInfo.cs: useGetFolderPath instead of getting "HOME".

svn path=/trunk/mcs/; revision=30997
2004-07-11 07:08:02 +00:00
Gert Driesen 1f1de514c6 * IsolatedStorage.cs: really mark the storage_scope field private
svn path=/trunk/mcs/; revision=29454
2004-06-13 17:51:09 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Gert Driesen 1383411edd * IsolatedStorage.cs: use private variable for holding scope,
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
2004-06-09 04:48:36 +00:00
Sebastien Pouliot fceba28ede 2004-05-12 Sebastien Pouliot <[email protected]>
* 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
2004-05-13 01:32:30 +00:00
Duncan Mak 5e2230e2b2 * Site.cs (IsValidSite): new method for checking the validing of
the site name.

* IsolatedStorageInfo.cs (CreateAssemblyFilename):
(CreateDomainFilename): Replace String.Format with Path.Combine.

svn path=/trunk/mcs/; revision=16967
2003-07-31 23:27:14 +00:00
Duncan Mak 47c8e47382 * IsolatedStorageFile.cs:
(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
2003-07-31 00:47:24 +00:00
Jonathan Pryor 78c15f1e87 Fix Spelling Error.
Reported by Torsten Rendelmann <[email protected]>.

svn path=/trunk/mcs/; revision=11692
2003-02-18 11:52:28 +00:00
Sebastien Pouliot 198a9c8cb5 2003-01-19 Sebastien Pouliot <[email protected]>
* IsolatedStorageFile.cs: Added missing [CLSCompliant(false)]
	to CurrentSize and MaximumSize to fix compilation (at least
	under Windows/csc).

svn path=/trunk/mcs/; revision=10701
2003-01-19 12:44:57 +00:00
Jonathan Pryor 17afb2ed9b My Afternoon Project. Implement System.IO.IsolatedStorage.
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
2003-01-19 05:46:10 +00:00
Piers Haken f409a4273b added missing [Flags] attribute
svn path=/trunk/mcs/; revision=3547
2002-04-02 03:44:35 +00:00
Piers Haken 719292eee9 fix typos
svn path=/trunk/mcs/; revision=3536
2002-04-01 18:54:20 +00:00
Piers Haken 84187bf9a6 fixed member accessibility to match MS (corcompare).
svn path=/trunk/mcs/; revision=3531
2002-04-01 06:07:43 +00:00
Duncan Mak aea51ce47d Add missing MonoTODO attribute
svn path=/trunk/mcs/; revision=2527
2002-02-19 21:27:24 +00:00
Duncan Mak 65abaeb0b4 Reverting patch to not break the build. Sorry.
svn path=/trunk/mcs/; revision=2282
2002-02-09 16:42:22 +00:00
Duncan Mak dc072eb885 2002-02-08 Duncan Mak <[email protected]>
* 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
2002-02-08 23:11:38 +00:00
Duncan Mak cb07814f2f 2002-02-07 Duncan Mak <[email protected]>
* IsolatedStorage.cs: Added to CVS, stubbed out the API.
	* IsolatedStorageException.cs: Implemented.

svn path=/trunk/mcs/; revision=2260
2002-02-07 19:39:47 +00:00
Duco Fijma 894a74d809 Created INormalizeForIsolatedStorage
svn path=/trunk/mcs/; revision=1901
2002-01-07 17:59:34 +00:00
Sean MacIsaac bfccf1dc6e * AttributeUseage.cs: Should define AttributeUsageAttribute.
* CLSCompliant.cs: Marked with AttributeUsage attribute.

* Decimal.cs: Fixed CLSCompliant attributes.

* Type.cs: changed _impl to internal (needs to be accessable by
subclasses).

(TypeHandle): Marked as abstract, implementation removed.

(IsNotPublic, IsPublic, GetMethods, GetPropery, GetConstructor,
GetMethod): Added stub implementations so NUnit would link against
corlib

* FileNotFoundException.cs: Added some constructors

* Path.cs (GetFullPath): Fixed implementation

* Assembly.cs: Filled in some stub implementations

* ConstructorInfo.cs: Added some stub functions for NUnit

* TypeBuilder.cs: Added implementation for TypeHandle.

svn path=/trunk/mcs/; revision=1326
2001-11-11 16:15:20 +00:00
Sean MacIsaac 6d11b05caa Removing old build files. NAnt doesn't use them.
svn path=/trunk/mcs/; revision=969
2001-09-26 09:11:29 +00:00
Sergey Chaban 4fee956984 Removed auto-generated comments.
svn path=/trunk/mcs/; revision=753
2001-09-07 15:15:18 +00:00
Miguel de Icaza e6dccbce05 Added piles of new enumerations from Sergey.
Updates the enumerations to contain [Flags] (Sergey)
Updated enumerations to have the same values as ECMA (Sergey).
Added various new methods to Type.cs
Added all the classes that were not being compiled in the past to the build.
Fix various small typos to get things compiling

Miguel

svn path=/trunk/mcs/; revision=702
2001-09-02 17:50:38 +00:00