ConfigCat SDK for .NET. ConfigCat is a hosted feature flag service: https://configcat.com. Manage feature toggles across frontend, backend, mobile, desktop apps. Alternative to LaunchDarkly. Management app + feature flag SDKs.
Adds IConfigCatClient.IsOffline property, IConfigCatClient.SetOnline and IConfigCatClient.SetOffline methods.
Renames EmptyConfigService to NullConfigService for better naming as this class implements the null object design pattern. (This is just a suggestion though, we can scrap it if you disagree.)
It's also worth mentioning that in the current implementation the client goes into offline mode implicitly when gets disposed. This also prevents the user from making forced cache refreshes (RefreshConfig/RefreshConfigAsync) on a disposed client. If you don't think that this is a good design, let's discuss it.
Requirement checklist (only if applicable)
[x] I have covered the applied changes with automated tests.
[x] I have executed the full automated test set against my changes.
[x] I have validated my changes against all supported platform versions.
Describe the purpose of your pull request
IConfigCatClient.IsOffline
property,IConfigCatClient.SetOnline
andIConfigCatClient.SetOffline
methods.EmptyConfigService
toNullConfigService
for better naming as this class implements the null object design pattern. (This is just a suggestion though, we can scrap it if you disagree.)It's also worth mentioning that in the current implementation the client goes into offline mode implicitly when gets disposed. This also prevents the user from making forced cache refreshes (
RefreshConfig
/RefreshConfigAsync
) on a disposed client. If you don't think that this is a good design, let's discuss it.Requirement checklist (only if applicable)