unleash-client-dotnet
unleash-client-dotnet copied to clipboard
adjusted UnleashService so that feature toggles can loaded immediatel…
adjusted UnleashService so that feature toggles can loaded immediately via LoadTogglesImmediately setting.
So the Cake powershell script builds these updates successfully and Visual Studio Build as well. Not sure what's going on with Appveyor.
Sorry man, I have been away from my computer a few weeks now.
There should already be an implemented feature doing "almost" what you want, but in an async manner using (FetchFeatureTogglesTask with ExecuteDuringStartup = true). This uses Timers behind the scenes, which are executed immediately. Are you experiencing a noticeable gap during startup where no toggles are loaded?
Regarding the pull request, doing an async method call in a constructor plus dot Result feels a bit wrong to me.. Perhaps a dedicated async method on DefaultUnleash class could be a better option?
@realityenigma take a peek on https://github.com/stiano/unleash-client-dotnet/pull/14/files#diff-180360612c6b8c4ed830919bbb4dd459, this solved my issue with appvoyer (currently having others)