Class ImplementationNode
- Namespace
- ZeroInstall.Store.ViewModel
- Assembly
- ZeroInstall.Store.dll
Models information about an implementation in an IImplementationStore for display in a UI.
public class ImplementationNode : CacheNode, INamed, IEquatable<CacheNode>
- Inheritance
-
objectImplementationNode
- Implements
- Derived
- Inherited Members
Constructors
ImplementationNode(string, ManifestDigest)
Creates a new implementation node.
public ImplementationNode(string path, ManifestDigest digest)
Parameters
pathstringThe path of the directory.
digestManifestDigestThe digest identifying the implementation.
Exceptions
- IOException
The manifest file could not be read.
- UnauthorizedAccessException
Read access to the manifest file is not permitted.
- FormatException
The manifest file is not valid.
Properties
Digest
The digest identifying the implementation in the store.
public string? Digest { get; }
Property Value
FeedUri
The URI of the feed describing the implementation.
public virtual FeedUri? FeedUri { get; }
Property Value
Name
The full name of the node used for tree hierarchies.
public override string Name { get; set; }
Property Value
Methods
Equals(CacheNode?)
public override bool Equals(CacheNode? other)
Parameters
otherCacheNode
Returns
GetHashCode()
public override int GetHashCode()
Returns
Remove(IFeedCache?, IImplementationStore?)
Removes this implementation from the implementationStore if provided.
public override void Remove(IFeedCache? feedCache = null, IImplementationStore? implementationStore = null)
Parameters
feedCacheIFeedCacheimplementationStoreIImplementationStore
Exceptions
- KeyNotFoundException
No matching implementation could be found in the IImplementationStore.
- IOException
The implementation could not be deleted.
- UnauthorizedAccessException
Write access to the store is not permitted.
ToString()
Creates string representation suitable for console output.
public override string ToString()
Returns
Verify(IImplementationStore)
Verify this implementation is undamaged.
public void Verify(IImplementationStore implementationStore)
Parameters
implementationStoreIImplementationStore
Exceptions
- OperationCanceledException
The user canceled the task.
- IOException
The entry's directory could not be processed.
- UnauthorizedAccessException
Read access to the entry's directory is not permitted.