jason-roberts / FeatureToggle

Simple, reliable feature toggles in .NET
http://dontcodetired.com/blog/?tag=/featuretoggle
Apache License 2.0
687 stars 111 forks source link

ApplyOnceFeatureToggle #86

Closed Odonno closed 7 years ago

Odonno commented 9 years ago

As a developer, I want to create an ApplyOnce feature that will be used to show a feature only one time to the user.

Moreover, it could be designed in 2 ways :

  1. ApplyOnceFeatureToggle (only once per app) by default
  2. ApplyOnceUserFeatureToggle (only once per user, through multiple apps or app instances) using the Roaming settings
jason-roberts commented 9 years ago

Hi @Odonno - that's a really interesting idea, one potential problem with this is that if the app is re-installed then locally saved settings might be lost, etc. What kind of uses do you think this toggle will have?

Odonno commented 9 years ago

That's a good question. Clearly, I don't know about the details on local settings.

Here, I am talking about the Windows Phone / Windows 8 implementation. Indeed, you can use the LocalSettings container and I am not sure if it is removed when the app is removed... As a default one, we can use the RoamingSettings that is shared across all user devices.