Class ImplementationStores
- Namespace
- ZeroInstall.Store.Implementations
- Assembly
- ZeroInstall.Store.dll
Manages implementation store directories and provides IImplementationStore instances.
public static class ImplementationStores
- Inheritance
-
ImplementationStores
- Inherited Members
Methods
Default(ITaskHandler)
Creates an IImplementationStore instance that uses the default cache locations (based on ImplementationStores.
public static IImplementationStore Default(ITaskHandler handler)
Parameters
handlerITaskHandlerA callback object used when the user is to be informed about progress or asked questions.
Returns
Exceptions
- IOException
There was a problem accessing a configuration file or one of the stores.
- UnauthorizedAccessException
Access to a configuration file or one of the stores was not permitted.
GetDirectories(bool)
Returns a list of paths for implementation directories as defined by configuration files including the default locations.
public static IEnumerable<string> GetDirectories(bool serviceMode = false)
Parameters
serviceModebooltrueto exclude the default location in the user profile, e.g., for system services.
Returns
Remarks
Multiple configuration files apply cumulatively. I.e., directories from both the user config and the system config are used.
Exceptions
- IOException
There was a problem accessing a configuration file or one of the stores.
- UnauthorizedAccessException
Access to a configuration file was not permitted.
GetMachineWideDirectories()
Returns a list of custom implementation directories in the current machine-wide configuration.
public static IEnumerable<string> GetMachineWideDirectories()
Returns
Exceptions
- IOException
There was a problem accessing a configuration file.
- UnauthorizedAccessException
Access to a configuration file was not permitted.
GetUserDirectories()
Returns a list of custom implementation directories in the current user configuration.
public static IEnumerable<string> GetUserDirectories()
Returns
Exceptions
- IOException
There was a problem accessing a configuration file.
- UnauthorizedAccessException
Access to a configuration file was not permitted.
SetMachineWideDirectories(IEnumerable<string>)
Sets the list of custom implementation directories in the current machine-wide configuration.
public static void SetMachineWideDirectories(IEnumerable<string> paths)
Parameters
pathsIEnumerable<string>The list of implementation directories to set.
Exceptions
- IOException
There was a problem writing a configuration file.
- UnauthorizedAccessException
Access to a configuration file was not permitted.
SetUserDirectories(IEnumerable<string>)
Sets the list of custom implementation directories in the current user configuration.
public static void SetUserDirectories(IEnumerable<string> paths)
Parameters
pathsIEnumerable<string>The list of implementation directories to set.
Exceptions
- IOException
There was a problem writing a configuration file.
- UnauthorizedAccessException
Access to a configuration file was not permitted.