Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Initial IsolatedStorage implementation #11080

Merged
merged 2 commits into from
Aug 26, 2016

Conversation

JeremyKuhne
Copy link
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
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
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
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
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.

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

- Size methods
- Remove methods

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.
@JeremyKuhne JeremyKuhne merged commit d7dde9d into dotnet:dev/api Aug 26, 2016
<NuGetTargetMoniker>.NETStandard,Version=v1.7</NuGetTargetMoniker>
<ProjectGuid>{27225772-FE8B-49D7-8E58-29242D536130}</ProjectGuid>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
Copy link
Member

Choose a reason for hiding this comment

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

Looks like VS updated some of these configurations. Can you please undo the setting of the OutputPath here, otherwise we will be dropping these files in the wrong outputs.

@karelz karelz modified the milestone: 1.2.0 Dec 3, 2016
@JeremyKuhne JeremyKuhne deleted the IsolatedStorage branch January 3, 2017 21:28
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Initial IsolatedStorage implementation

Commit migrated from dotnet/corefx@d7dde9d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants