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
-
ImplementationNode
- Implements
- Derived
- Inherited Members
Constructors
ImplementationNode(string, ManifestDigest)
Creates a new implementation node.
public ImplementationNode(string path, ManifestDigest digest)
Parameters
path
stringThe path of the directory.
digest
ManifestDigestThe 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?)
Indicates whether the current object is equal to another object of the same type.
public override bool Equals(CacheNode? other)
Parameters
other
CacheNodeAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Remove(IFeedCache?, IImplementationStore?)
Removes this implementation from the implementationStore
if provided.
public override void Remove(IFeedCache? feedCache = null, IImplementationStore? implementationStore = null)
Parameters
feedCache
IFeedCacheimplementationStore
IImplementationStore
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
implementationStore
IImplementationStore
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.