C# Class Mono.Addins.Setup.RepositoryRegistry

A registry of on-line repositories
This class can be used to manage on-line repository subscriptions.
Afficher le fichier Open project: slluis/mono-addins Class Usage Examples

Private Properties

Свойство Type Description
FindRepositoryRecord RepositoryRecord
GetAvailableAddin Mono.Addins.Setup.PackageRepositoryEntry[]
GetAvailableUpdates AddinRepositoryEntry[]
GetAvailableUpdates AddinRepositoryEntry[]
GetRepositoryTree void
RegisterRepository RepositoryRecord
RepositoryRegistry System
UpdateRepository void

Méthodes publiques

Méthode Description
ContainsRepository ( string url ) : bool

Checks if a repository is already subscribed.

GetAvailableAddin ( string id, string version ) : AddinRepositoryEntry[]

Checks if an add-in is available to be installed

List of references to add-ins available in on-line repositories. This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.

GetAvailableAddin ( string repositoryUrl, string id, string version ) : AddinRepositoryEntry[]

Checks if an add-in is available to be installed from a repository

List of references to add-ins available in the repository. This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.

GetAvailableAddinUpdates ( string id ) : AddinRepositoryEntry[]

Gets a list of available updates for an add-in.

The list is generated by checking if there is any add-in with a newer version number in any of the subscribed repositories. This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.

GetAvailableAddinUpdates ( string repositoryUrl, string id ) : AddinRepositoryEntry[]

Gets a list of available updates for an add-in in a specific repository

The list is generated by checking if there is any add-in with a newer version number in the provided repository. This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.

GetAvailableAddins ( ) : AddinRepositoryEntry[]

Gets a list of all available add-ins

This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.

GetAvailableAddins ( string repositoryUrl ) : AddinRepositoryEntry[]

Gets a list of all available add-ins in a repository

This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.

GetAvailableUpdates ( ) : AddinRepositoryEntry[]

Gets a list of available add-in updates.

The list is generated by looking at the add-ins currently installed and checking if there is any add-in with a newer version number in any of the subscribed repositories. This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.

GetAvailableUpdates ( string repositoryUrl ) : AddinRepositoryEntry[]

Gets a list of available add-in updates in a specific repository.

The list is generated by looking at the add-ins currently installed and checking if there is any add-in with a newer version number in the provided repository. This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.

GetRepositories ( ) : AddinRepository[]

Gets a list of subscribed repositories

RegisterRepository ( IProgressStatus monitor, string url ) : AddinRepository

Subscribes to an on-line repository

The repository index is not downloaded by default. It can be downloaded by calling UpdateRepository.

RegisterRepository ( IProgressStatus monitor, string url, bool updateNow ) : AddinRepository

Subscribes to an on-line repository

RemoveRepository ( string url ) : void

Removes an on-line repository subscription.

UpdateAllRepositories ( IProgressStatus monitor ) : void

Updates the add-in index of all subscribed repositories.

UpdateRepository ( IProgressStatus statusMonitor, string url ) : void

Updates the add-in index of the provided repository

Private Methods

Méthode Description
FindRepositoryRecord ( string url ) : RepositoryRecord
GetAvailableAddin ( string repositoryUrl, string id, string version, bool updates ) : Mono.Addins.Setup.PackageRepositoryEntry[]
GetAvailableUpdates ( string id, string version ) : AddinRepositoryEntry[]
GetAvailableUpdates ( string repositoryUrl, string id, string version ) : AddinRepositoryEntry[]
GetRepositoryTree ( string url, ArrayList list ) : void
RegisterRepository ( string url, bool isReference ) : RepositoryRecord
RepositoryRegistry ( Mono.Addins.Setup.SetupService service ) : System
UpdateRepository ( IProgressMonitor monitor, Uri baseUri, RepositoryRecord rr ) : void

Method Details

ContainsRepository() public méthode

Checks if a repository is already subscribed.
public ContainsRepository ( string url ) : bool
url string /// URL of the repository ///
Résultat bool

GetAvailableAddin() public méthode

Checks if an add-in is available to be installed
List of references to add-ins available in on-line repositories. This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.
public GetAvailableAddin ( string id, string version ) : AddinRepositoryEntry[]
id string /// Identifier of the add-in ///
version string /// Version of the add-in (optional, it can be null) ///
Résultat AddinRepositoryEntry[]

GetAvailableAddin() public méthode

Checks if an add-in is available to be installed from a repository
List of references to add-ins available in the repository. This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.
public GetAvailableAddin ( string repositoryUrl, string id, string version ) : AddinRepositoryEntry[]
repositoryUrl string /// A repository URL ///
id string /// Identifier of the add-in ///
version string /// Version of the add-in (optional, it can be null) ///
Résultat AddinRepositoryEntry[]

GetAvailableAddinUpdates() public méthode

Gets a list of available updates for an add-in.
The list is generated by checking if there is any add-in with a newer version number in any of the subscribed repositories. This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.
public GetAvailableAddinUpdates ( string id ) : AddinRepositoryEntry[]
id string /// Identifier of the add-in. ///
Résultat AddinRepositoryEntry[]

GetAvailableAddinUpdates() public méthode

Gets a list of available updates for an add-in in a specific repository
The list is generated by checking if there is any add-in with a newer version number in the provided repository. This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.
public GetAvailableAddinUpdates ( string repositoryUrl, string id ) : AddinRepositoryEntry[]
repositoryUrl string /// Identifier of the add-in. ///
id string /// Identifier of the add-in. ///
Résultat AddinRepositoryEntry[]

GetAvailableAddins() public méthode

Gets a list of all available add-ins
This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.
public GetAvailableAddins ( ) : AddinRepositoryEntry[]
Résultat AddinRepositoryEntry[]

GetAvailableAddins() public méthode

Gets a list of all available add-ins in a repository
This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.
public GetAvailableAddins ( string repositoryUrl ) : AddinRepositoryEntry[]
repositoryUrl string /// A repository URL ///
Résultat AddinRepositoryEntry[]

GetAvailableUpdates() public méthode

Gets a list of available add-in updates.
The list is generated by looking at the add-ins currently installed and checking if there is any add-in with a newer version number in any of the subscribed repositories. This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.
public GetAvailableUpdates ( ) : AddinRepositoryEntry[]
Résultat AddinRepositoryEntry[]

GetAvailableUpdates() public méthode

Gets a list of available add-in updates in a specific repository.
The list is generated by looking at the add-ins currently installed and checking if there is any add-in with a newer version number in the provided repository. This method uses cached information from on-line repositories. Make sure you call UpdateRepository or UpdateAllRepositories before using this method to ensure that the latest information is available.
public GetAvailableUpdates ( string repositoryUrl ) : AddinRepositoryEntry[]
repositoryUrl string /// The repository URL ///
Résultat AddinRepositoryEntry[]

GetRepositories() public méthode

Gets a list of subscribed repositories
public GetRepositories ( ) : AddinRepository[]
Résultat AddinRepository[]

RegisterRepository() public méthode

Subscribes to an on-line repository
The repository index is not downloaded by default. It can be downloaded by calling UpdateRepository.
public RegisterRepository ( IProgressStatus monitor, string url ) : AddinRepository
monitor IProgressStatus /// Progress monitor where to show progress status and log ///
url string /// URL of the repository ///
Résultat AddinRepository

RegisterRepository() public méthode

Subscribes to an on-line repository
public RegisterRepository ( IProgressStatus monitor, string url, bool updateNow ) : AddinRepository
monitor IProgressStatus /// Progress monitor where to show progress status and log ///
url string /// URL of the repository ///
updateNow bool /// When set to True, the repository index will be downloaded. ///
Résultat AddinRepository

RemoveRepository() public méthode

Removes an on-line repository subscription.
public RemoveRepository ( string url ) : void
url string /// URL of the repository. ///
Résultat void

UpdateAllRepositories() public méthode

Updates the add-in index of all subscribed repositories.
public UpdateAllRepositories ( IProgressStatus monitor ) : void
monitor IProgressStatus /// Progress monitor where to show progress status and log ///
Résultat void

UpdateRepository() public méthode

Updates the add-in index of the provided repository
public UpdateRepository ( IProgressStatus statusMonitor, string url ) : void
statusMonitor IProgressStatus /// Progress monitor where to show progress status and log ///
url string /// URL of the repository ///
Résultat void