Skip to content

[Feature] Create a system for RoamingSettings via the Graph #72

@shweaver-MSFT

Description

@shweaver-MSFT

Describe the problem this feature would solve

RoamingSettings have been deprecated by the platform but developers still need a way to save settings data that will roam with the user.

https://docs.microsoft.com/en-us/windows/deployment/planning/windows-10-deprecated-features

Describe the solution

We already have a prototype for roaming settings via extensions on the Graph user, as well as saving to files in OneDrive. We need a way to consume these from a single standpoint.

Something like:

var settings = new RoamingSettings(DataStore.OneDrive); // DataStore.UserExtensions

I chose to extend IObjectStorageHelper from WCT and replace the existing RoamingObjectStorageHelper

I like this setup because it includes consideration for scaling to other data storage types (KVP, Json file, etc.). It also gives us a graceful way to replace the existing RoamingObjectStorageHelper in WCT. I don't see option 1 being easy to build a system with.

Other info

I'd like to move these files to a separate package once PR #76 is merged in.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions