Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Initial IsolatedStorage implementation#11080

Merged
JeremyKuhne merged 2 commits intodotnet:dev/apifrom
JeremyKuhne:IsolatedStorage
Aug 26, 2016
Merged

Initial IsolatedStorage implementation#11080
JeremyKuhne merged 2 commits intodotnet:dev/apifrom
JeremyKuhne:IsolatedStorage

Conversation

@JeremyKuhne
Copy link
Copy Markdown
Member

Implements most of the APIs we intend to provide. Still pending are:

  • Size methods
  • Remove methods
  • ACLing on Windows

We do not plan to implement the store iterator or any factory methods that take arguments yet.

Tests are forthcoming- the helper class is intended to facilitate unit testing as well as abstracting platform differences. Also need to fix packages and UWP build.

This PR is NOT going in as is- this is to facilitate design feedback as I add tests and fix the packaging/UWP issues.

@ellismg; @weshaggard; @ericstj; @danmosemsft

@@ -0,0 +1,3 @@
Compat issues with assembly System.IO.IsolatedStorage:
CannotAddAbstractMembers : Member 'System.IO.IsolatedStorage.IsolatedStorage.GetPermission(System.Security.PermissionSet)' is abstract in the implementation but is missing in the contract.
Total Issues: 1
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. I'll clear the duplicate file.

@danmoseley
Copy link
Copy Markdown
Member

:shipit:

internal static void CreateDirectory(string path, IsolatedStorageScope scope)
{
// ACL'ing isn't an issue in WinRT, just create it
Directory.CreateDirectory(path);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can just use Directory.CreateDirectory at the call site then. No need for the scope. Etc.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than I'm calling this helper in shared code. I figured it was better to call the helper here than not since it is there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

9 participants