Skip to content

[Feature] Migrate ObjectStorage interfaces to *.Toolkit package to enable NetStandard consumption #3903

Closed
@shweaver-MSFT

Description

@shweaver-MSFT

Describe the problem this feature would solve

The ObjectStorage helper interfaces and implementations currently live in the *.Uwp package. This means that they are not consumable from NetStandard code.

Describe the solution

I propose we migrate the IObjectSerializer,IObjectStorageHelper, and SystemSerializer interfaces/classes up to the *.Toolkit package, which is NetStandard. There will need to be a few modifications to remove the Windows.Storage namespace, but very minor.

I'm working on a new Graph powered implementation that I think would work nicely with the existing setup in WCT. However, I don't want to take the dependency on Windows to do so. It isn't needed, so this change will enable more flexibility in storage helper implementations.

Describe alternatives you've considered

I could NOT extend the IObjectStorageHelper, but we would lose the ability to easily swap with the existing/deprecated RoamingObjectStorageHelper.

OR

I could leave the StorageHelper interfaces where they are and take the Windows dependency, but that would prevent any NetStandard projects from taking advantage of the new Graph powered implementations.

Additional context & Screenshots

CommunityToolkit/Graph-Controls#72

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions