Zero Install .NET API 2.20.0
ZeroInstall.Store.ViewModel.CacheNode Class Referenceabstract

Models information about elements in a cache for display in a UI. More...

Inheritance diagram for ZeroInstall.Store.ViewModel.CacheNode:
NanoByte::Common::INamed ZeroInstall.Store.ViewModel.FeedNode ZeroInstall.Store.ViewModel.StoreNode ZeroInstall.Store.ViewModel.ImplementationNode ZeroInstall.Store.ViewModel.TempDirectoryNode ZeroInstall.Store.ViewModel.OrphanedImplementationNode ZeroInstall.Store.ViewModel.OwnedImplementationNode

Public Member Functions

abstract void Delete (ITaskHandler handler)
 Deletes this element from the cache it is stored in. More...
 
bool Equals (CacheNode? other)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 

Public Attributes

int SuffixCounter
 A counter that can be used to prevent naming collisions. More...
 

Properties

abstract string Name [getset]
 The full name of the node used for tree hierarchies.
 
- Properties inherited from NanoByte::Common::INamed
string Name
 

Detailed Description

Models information about elements in a cache for display in a UI.

Member Function Documentation

◆ Delete()

abstract void ZeroInstall.Store.ViewModel.CacheNode.Delete ( ITaskHandler  handler)
pure virtual

Deletes this element from the cache it is stored in.

Parameters
handlerA callback object used when the the user needs to be asked questions or informed about IO tasks.
Exceptions
OperationCanceledExceptionThe user canceled the task.
KeyNotFoundExceptionNo matching element could be found in the cache.
IOExceptionThe element could not be deleted.
UnauthorizedAccessExceptionWrite access to the cache is not permitted.

Implemented in ZeroInstall.Store.ViewModel.FeedNode, ZeroInstall.Store.ViewModel.ImplementationNode, and ZeroInstall.Store.ViewModel.TempDirectoryNode.

Member Data Documentation

◆ SuffixCounter

int ZeroInstall.Store.ViewModel.CacheNode.SuffixCounter

A counter that can be used to prevent naming collisions.

If this value is not zero it is appended to the Name.


The documentation for this class was generated from the following file: