public bool GetBoolean(string collection, string propertyName, bool defaultValue) { int value; _store.GetBoolOrDefault(collection, propertyName, defaultValue ? 1 : 0, out value); return(value != 0); }
public bool GetBoolean(string collection, string propertyName, bool defaultValue) { return(NuGetUIThreadHelper.JoinableTaskFactory.Run(async() => { await NuGetUIThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); var hr = _store.GetBoolOrDefault(collection, propertyName, defaultValue ? 1 : 0, out var value); return ErrorHandler.Succeeded(hr) ? value != 0 : false; })); }