internal static Uri GetPackageBaseAddressUri(this ServiceIndexResourceV3 serviceIndex)
 {
     return(serviceIndex.GetCatalogServiceUri(PackageBaseAddressUrl));
 }
 internal static Uri GetRegistrationBaseUri(this ServiceIndexResourceV3 serviceIndex)
 {
     return(serviceIndex.GetCatalogServiceUri(RegistrationsBaseUrl));
 }
 internal static Uri GetCatalogServiceUri(this ServiceIndexResourceV3 serviceIndex)
 {
     return(serviceIndex.GetCatalogServiceUri(CatalogServiceUrl));
 }
Beispiel #4
0
        /// <summary>
        /// Return the catalog index.json Uri.
        /// </summary>
        public async Task <Uri> GetCatalogIndexUriAsync(CancellationToken token)
        {
            await EnsureServiceIndexAsync(_indexUri, token);

            return(_serviceIndex.GetCatalogServiceUri());
        }