Exemplo n.º 1
0
        private async Task <bool> IsListedAsync(CatalogEntry entry)
        {
            var details = await entry.GetPackageDetailsAsync();

            var listedProperty = details.Property("listed");

            if (listedProperty != null)
            {
                return((bool)listedProperty.Value);
            }

            var publishedProperty = details.Property("published");
            var published         = DateTimeOffset.Parse((string)publishedProperty.Value);

            return(published.ToUniversalTime().Year != 1900);
        }