C# Class ZeroInstall.Store.Implementations.CompositeStore

Combines multiple IStores as a composite. Adds memory caching for IStore.Contains(ManifestDigest).

When adding new Implementations the last child IStore that doesn't throw an UnauthorizedAccessException is used.

When when retrieving existing Implementations the first child IStore that returns true for IStore.Contains(ZeroInstall.Store.Model.ManifestDigest) is used.

Inheritance: System.MarshalByRefObject, IStore
Afficher le fichier Open project: 0install/0install-win Class Usage Examples

Méthodes publiques

Méthode Description
AddArchives ( IEnumerable archiveInfos, ManifestDigest manifestDigest, ITaskHandler handler ) : string
AddDirectory ( string path, ManifestDigest manifestDigest, ITaskHandler handler ) : string
CompositeStore ( [ stores ) : System

Creates a new composite implementation provider with a set of IStores.

Contains ( ManifestDigest manifestDigest ) : bool
Contains ( string directory ) : bool
Flush ( ) : void
GetPath ( ManifestDigest manifestDigest ) : string
ListAll ( ) : IEnumerable
ListAllTemp ( ) : IEnumerable
Optimise ( ITaskHandler handler ) : long
Remove ( ManifestDigest manifestDigest, ITaskHandler handler ) : bool
ToString ( ) : string

Returns the names of the child stores. Not safe for parsing!

Verify ( ManifestDigest manifestDigest, ITaskHandler handler ) : void

Method Details

AddArchives() public méthode

public AddArchives ( IEnumerable archiveInfos, ManifestDigest manifestDigest, ITaskHandler handler ) : string
archiveInfos IEnumerable
manifestDigest ManifestDigest
handler ITaskHandler
Résultat string

AddDirectory() public méthode

public AddDirectory ( string path, ManifestDigest manifestDigest, ITaskHandler handler ) : string
path string
manifestDigest ManifestDigest
handler ITaskHandler
Résultat string

CompositeStore() public méthode

Creates a new composite implementation provider with a set of IStores.
public CompositeStore ( [ stores ) : System
stores [ /// A priority-sorted list of s. /// Queried last-to-first for adding new s, first-to-last otherwise. ///
Résultat System

Contains() public méthode

public Contains ( ManifestDigest manifestDigest ) : bool
manifestDigest ManifestDigest
Résultat bool

Contains() public méthode

public Contains ( string directory ) : bool
directory string
Résultat bool

Flush() public méthode

public Flush ( ) : void
Résultat void

GetPath() public méthode

public GetPath ( ManifestDigest manifestDigest ) : string
manifestDigest ManifestDigest
Résultat string

ListAll() public méthode

public ListAll ( ) : IEnumerable
Résultat IEnumerable

ListAllTemp() public méthode

public ListAllTemp ( ) : IEnumerable
Résultat IEnumerable

Optimise() public méthode

public Optimise ( ITaskHandler handler ) : long
handler ITaskHandler
Résultat long

Remove() public méthode

public Remove ( ManifestDigest manifestDigest, ITaskHandler handler ) : bool
manifestDigest ManifestDigest
handler ITaskHandler
Résultat bool

ToString() public méthode

Returns the names of the child stores. Not safe for parsing!
public ToString ( ) : string
Résultat string

Verify() public méthode

public Verify ( ManifestDigest manifestDigest, ITaskHandler handler ) : void
manifestDigest ManifestDigest
handler ITaskHandler
Résultat void