Commit Graph
63 Commits
Author SHA1 Message Date
Rolf Bjarne Kvinge 41f0288a89 2010-06-18 Rolf Bjarne Kvinge <[email protected]>
* MoonIsolatedStorageFile.cs: Add IsEnabled.

svn path=/trunk/mcs/; revision=159113
2010-06-17 23:47:17 +00:00
Carlos Alberto Cortez f8cd3fd6db 2010-06-16 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Remove should catch all the exceptions
	caused by DirectoryInfo.Delete and throw an IsolatedStorageException
	instead.


svn path=/trunk/mcs/; revision=159017
2010-06-16 12:20:38 +00:00
Carlos Alberto Cortez 3648983129 2010-06-08 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Ugh, accidentally forgot to commit the changes for
	in the previous commit.


svn path=/trunk/mcs/; revision=158673
2010-06-08 17:04:16 +00:00
Carlos Alberto Cortez fa59c4519d * IsolatedStorageFile.cs: GetUserStoreForSite is only throwing a
NotSupportedException.
	* IsolatedStorageFileStream.cs: Implement Flush by calling the base impl.

2010-06-07  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=158612
2010-06-07 23:59:34 +00:00
Carlos Alberto Cortez 1535508307 * IsolatedStorageFile.cs: Remove and DeleteFile must report any
error found in our System.IO classes as IsolatedStorageException.

2010-06-07  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=158593
2010-06-07 17:45:40 +00:00
Carlos Alberto Cortez 6b07b11036 2010-06-07 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Update the exceptions we are firing in 4.0
	for CreateDirectory, GetFileNames and GetDirectoryNames.


svn path=/trunk/mcs/; revision=158589
2010-06-07 15:01:00 +00:00
Carlos Alberto Cortez eac37095c0 2010-06-06 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageSecurityState.cs: Make our .ctor internal - so we
	don't expose a public .ctor at all.


svn path=/trunk/mcs/; revision=158568
2010-06-06 18:29:18 +00:00
Carlos Alberto Cortez 6d55768aa7 2010-06-06 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Our 4.0 methods receiving a path should
	either return false or throw an IsolatedStorageException if the path
	refers to a directory outside the storage root.


svn path=/trunk/mcs/; revision=158566
2010-06-06 18:21:35 +00:00
Carlos Alberto Cortez cb9c0127a4 2010-06-04 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: In CheckOpen check that the directory for
	the current storage is still valid, and throw an exception if needed.
	Also, in the static Remove method call Directory.Delete only if the
	directory exists, to avoid throwing an exception there.


svn path=/trunk/mcs/; revision=158478
2010-06-04 15:26:27 +00:00
Sebastien Pouliot 4091aeb5dc 2010-06-03 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorage.cs: Make class internal so we can access it
	from System.Window.dll to adjust quotas


svn path=/trunk/mcs/; revision=158407
2010-06-03 15:28:59 +00:00
Carlos Alberto Cortez 347e1a2ac6 2010-06-02 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Check for empty paths and existing paths in
	both MoveFile and MoveDirectory, just as we do in CopyFile. Finally
	cover our IO calls with a try-catch block, so all the IOException
	instances are reported as IsolatedStorageException.


svn path=/trunk/mcs/; revision=158355
2010-06-02 18:30:40 +00:00
Carlos Alberto Cortez 9238181d94 2010-05-31 Carlos Alberto Cortez <[email protected]>
* IsolatedStorage.cs:
	* IsolatedStorageFile.cs: Implement AvailableFreeSpace, Quota,
	UsedSize and IncreaseQuotaTo.


svn path=/trunk/mcs/; revision=158223
2010-05-31 15:54:26 +00:00
Carlos Alberto Cortez 85b9760030 2010-05-27 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Implement CopyFile.


svn path=/trunk/mcs/; revision=158049
2010-05-27 17:19:48 +00:00
Carlos Alberto Cortez b94ffc9678 2010-05-27 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Implement GetCreationTime, GetLastAccessTime
	and GetLastWriteTime, as well as creating a single method to check for
	the closed/disposed fields.


svn path=/trunk/mcs/; revision=158030
2010-05-27 13:00:30 +00:00
Carlos Alberto Cortez f996d5555f 2010-05-26 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Remove should call Close, just as .Net seems
	to do.


svn path=/trunk/mcs/; revision=157970
2010-05-26 15:58:05 +00:00
Carlos Alberto Cortez d17afb0b6c * IsolatedStorageFileStream.cs: When creating the instance, we should check
for diposed first, and for closed on second place.
	* IsolatedStorageFile.cs: Add Obsolete to CurrentSize and MaximumSize,
	as part of 4.0.

2010-05-24  Carlos Alberto Cortez <[email protected]>


svn path=/trunk/mcs/; revision=157816
2010-05-25 01:02:15 +00:00
Carlos Alberto Cortez 07eadfa052 2010-05-24 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFileStream.cs: When creating our instance check that
	the IsolatedStorageFile is not closed/disposed.
	* IsolatedStorageFile.cs: Expose closed/disposed info as internal
	properties, as well as implement 4.0 MoveDirectory/MoveFile, CreateFile
	and OpenFile methods.


svn path=/trunk/mcs/; revision=157801
2010-05-24 16:13:39 +00:00
Carlos Alberto Cortez 0c1f40d84e 2010-05-23 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Implement FileExists and DirectoryExists, as
	well as adding fields to detect that Close/Dispose have been called
	and fire the proper exceptions.


svn path=/trunk/mcs/; revision=157784
2010-05-23 16:12:04 +00:00
Carlos Alberto Cortez eef4d3b49b 2010-05-21 Carlos Alberto Cortez <[email protected]>
4.0 Updates.

	* IsolatedStorage.cs: Add ObsoleteAttribute to CurrentSize and
	MaximumSize.
	* IsolatedStorageSecurityState.cs: New, stubbed.
	* IsolatedStorageSecurityOptions.cs: New file.


svn path=/trunk/mcs/; revision=157739
2010-05-21 20:22:03 +00:00
Carlos Alberto Cortez c393a5b143 2010-05-20 Carlos Alberto Cortez <[email protected]>
* IsolatedStorageFile.cs: Add the new 4.0 overloads for
	GetDirectoryNames and GetFileNames.


svn path=/trunk/mcs/; revision=157621
2010-05-20 13:09:36 +00:00
Jb Evain d229615ecc use MOONLIGHT symbol
svn path=/trunk/mcs/; revision=153657
2010-03-16 12:10:42 +00:00
Sebastien Pouliot c20fa2a85c 2009-11-01 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorageFile.cs: Add new CheckSearchPattern 
	validation method. Fix GetDirectoryNames to behave like 
	GetFileNames wrt searchPattern


svn path=/trunk/mcs/; revision=145167
2009-11-01 16:46:27 +00:00
Jb Evain bd9b888867 2009-08-30 Jb Evain <[email protected]>
* IsolatedStorageFileEnumerator.cs
	* MoonIsolatedStorageFileStream.cs
	* MoonIsolatedStorageFile.cs
	* MoonIsolatedStorage.cs
	* IsolatedStorageScope.cs
	* IsolatedStorageFileStream.cs
	* IsolatedStorage.cs
	* IsolatedStorageFile.cs:
		Use the traditional net_2_0 version of isolated storage
		for MonoTouch.


svn path=/trunk/mcs/; revision=140937
2009-08-30 16:24:36 +00:00
Jackson Harper 7ac381196d * MoonIsolatedStorageFile.cs: Allow paths in search patterns.
svn path=/trunk/mcs/; revision=134860
2009-05-27 18:12:27 +00:00
Sebastien Pouliot 52531b6daa In .:
2009-04-16  Sebastien Pouliot  <[email protected]>

	* corlib.dll.sources: Add System.IO.IsolatedStorage/
	MoonIsolatedStorage.cs to the build

In System.IO.IsolatedStorage:
2009-04-16  Sebastien Pouliot  <[email protected]> 

	* MoonIsolatedStorage.cs: New. Manage the shared (location, quota)
	information about Moonlight isolated storage.
	* MoonIsolatedStorageFile.cs: Adjust with new MoonIsolatedStorage.
	Implement IncreaseQuotaTo UI.
	* MoonIsolatedStorageFileStream.cs: Adjust with MoonIsolatedStorage.


svn path=/trunk/mcs/; revision=131903
2009-04-16 15:25:45 +00:00
Sebastien Pouliot 50fb5fadf9 2009-04-16 Sebastien Pouliot <[email protected]>
* IsolatedStorageFile.cs: Fix thread-safety issue at creation time.
	[Fix bug #431039]
	* IsolatedStorageFileStream.cs: Fix missing path check in Verify.
	[Fix bug #487659]


svn path=/trunk/mcs/; revision=131886
2009-04-16 12:03:19 +00:00
Sebastien Pouliot 0931e7ed5e 2008-12-23 Sebastien Pouliot <[email protected]>
* IsolatedStorageFile.cs: Use Url as the default evidence type when
	null is supplied.
	[Fix bug #430932]


svn path=/trunk/mcs/; revision=122041
2008-12-23 16:17:51 +00:00
Sebastien Pouliot 6268d0bdd3 2008-09-11 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorageFile.cs: Add application and iste specific 
	initialization. Add rumenditary quota support (not thread or cross 
	process safe). Add a bunch of TODO & FIXME.
	* MoonIsolatedStorageFileStream.cs: Add quota checks (delegated 
	into MoonIsolatedStorageFile).


svn path=/trunk/mcs/; revision=112762
2008-09-11 14:39:16 +00:00
Sebastien Pouliot bafa554120 2008-09-05 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorageFile.cs: Add calls to PreCheck inside EndRead
	and EndWrite methods.
	* MoonIsolatedStorageFileStream.cs: Throw an IsolatedStorageException
	when DeleteFile is called on an unexisting file.


svn path=/trunk/mcs/; revision=112374
2008-09-05 13:35:30 +00:00
Sebastien Pouliot 3df1954ed8 2008-08-22 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorageFile.cs: Implement Remove. Add a bunch of FIXME 
	mostly related to quota.
	* MoonIsolatedStorageFileStream.cs: Add a call to the container's
	PreCheck method in most methods. Add FIXME for quota.


svn path=/trunk/mcs/; revision=111394
2008-08-22 18:29:10 +00:00
Sebastien Pouliot a48fb190d6 2008-08-21 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorageFile.cs: Split Application and Site storage.
	Start looking at quota.
	* MoonIsolatedStorageFileStream.cs: Added more validation to 
	ctors. Removed IsAsync (not in beta2). (SetLength) Start using some 
	quota checks 


svn path=/trunk/mcs/; revision=111308
2008-08-21 21:40:20 +00:00
Sebastien Pouliot dc565053ae 2008-08-20 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorageFile.cs: More fixes to match unit tests.


svn path=/trunk/mcs/; revision=111177
2008-08-20 20:18:43 +00:00
Sebastien Pouliot 9a7fb919ce 2008-08-20 Sebastien Pouliot <[email protected]>
* MoonIsolatedStorageFile.cs: Fix API to match SL2 beta2. Start
	implementing new feature (while writing unit tests).
	* MoonIsolatedStorageFileStream.cs: Add new async methods [Begin|
	End][Read|Write] present in b2. Fix endless recursion in WriteByte.


svn path=/trunk/mcs/; revision=111152
2008-08-20 15:40:21 +00:00
Sebastien Pouliot 6db2b06432 2008-04-18 Sebastien Pouliot <[email protected]>
* IsolatedStorageFile.cs: Fix CreateDirectory to accept multiple 
	subdirectories. Avoid leaking full path in DeleteDirectory. Fix 
	GetDirectoryNames to work with path (and the search pattern).
	[Fix bug #376188]


svn path=/trunk/mcs/; revision=101172
2008-04-18 21:54:27 +00:00
Sebastien Pouliot b79a9d5847 2008-03-28 Sebastien Pouliot <[email protected]>
* IsolatedStorageFile.cs: Don't show the full path on exception if a 
	directory can't be created (fix bug #354539). Also fix path/patterns when
	looking for files (it behave differently than DirectoryInfo does).


svn path=/trunk/mcs/; revision=99231
2008-03-28 19:09:25 +00:00
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
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
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