C# Класс ZeroInstall.Services.Feeds.CatalogManager

Provides access to remote and local Catalogs. Handles downloading, signature verification and caching.
Наследование: ICatalogManager
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DefaultSource FeedUri

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
GetCached ( ) : Catalog
GetOnline ( ) : Catalog
GetSources ( ) : FeedUri[]
SaveCache ( [ catalog ) : void

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

Описание методов

AddSource() публичный Метод

public AddSource ( FeedUri uri ) : bool
uri FeedUri
Результат bool

CatalogManager() публичный Метод

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.
Результат System

DownloadCatalog() публичный Метод

public DownloadCatalog ( FeedUri source ) : Catalog
source FeedUri
Результат Catalog

RemoveSource() публичный Метод

public RemoveSource ( FeedUri uri ) : bool
uri FeedUri
Результат bool

SetSources() публичный статический Метод

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.
Результат void

Описание свойств

DefaultSource публичное статическое свойство

The default Catalog source used if no other is specified.
public static FeedUri DefaultSource
Результат FeedUri