C# Class ZeroInstall.Services.Feeds.CatalogManager

Provides access to remote and local Catalogs. Handles downloading, signature verification and caching.
Inheritance: ICatalogManager
Afficher le fichier Open project: 0install/0install-win Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultSource FeedUri

Méthodes publiques

Méthode Description
AddSource ( FeedUri uri ) : bool
CatalogManager ( [ trustManager, [ handler ) : System

Creates a new catalog manager.

DownloadCatalog ( FeedUri source ) : Catalog
RemoveSource ( FeedUri uri ) : bool
SetSources ( [ uris ) : void

Sets the list of catalog sources in a configuration file.

Private Methods

Méthode Description
GetCached ( ) : Catalog
GetOnline ( ) : Catalog
GetSources ( ) : FeedUri[]
SaveCache ( [ catalog ) : void

Saves a merged Catalog to the cache file for later retrieval by GetCached.

Method Details

AddSource() public méthode

public AddSource ( FeedUri uri ) : bool
uri FeedUri
Résultat bool

CatalogManager() public méthode

Creates a new catalog manager.
public CatalogManager ( [ trustManager, [ handler ) : System
trustManager [ Methods for verifying signatures and user trust.
handler [ A callback object used when the the user needs to be informed about progress.
Résultat System

DownloadCatalog() public méthode

public DownloadCatalog ( FeedUri source ) : Catalog
source FeedUri
Résultat Catalog

RemoveSource() public méthode

public RemoveSource ( FeedUri uri ) : bool
uri FeedUri
Résultat bool

SetSources() public static méthode

Sets the list of catalog sources in a configuration file.
There was a problem writing a configuration file. Access to a configuration file was not permitted.
public static SetSources ( [ uris ) : void
uris [ The list of catalog sources to use from now on.
Résultat void

Property Details

DefaultSource public_oe static_oe property

The default Catalog source used if no other is specified.
public static FeedUri DefaultSource
Résultat FeedUri