Orc.NuGetExplorer.NuGetConfigurationService.GetIsPrereleaseAllowed C# (CSharp) Method

GetIsPrereleaseAllowed() public method

public GetIsPrereleaseAllowed ( IRepository repository ) : bool
repository IRepository
return bool
        public bool GetIsPrereleaseAllowed(IRepository repository)
        {
            var key = GetIsPrereleaseAllowedKey(repository);
            var stringValue = _configurationService.GetRoamingValue(key, false.ToString());

            bool value;
            if (bool.TryParse(stringValue, out value))
            {
                return value;
            }

            return false;
        }