Zero Install .NET API  2.18.1
ZeroInstall.Store.Implementations.ImplementationStores Class Reference

Manages implementation store directories and provides IImplementationStore instances. More...

Static Public Member Functions

static IImplementationStore Default ()
 Creates an IImplementationStore instance that uses the default cache locations (based on ImplementationStores. More...
 
static IEnumerable< string > GetDirectories (bool serviceMode=false)
 Returns a list of paths for implementation directories as defined by configuration files including the default locations. More...
 
static IEnumerable< string > GetUserDirectories ()
 Returns a list of custom implementation directories in the current user configuration. More...
 
static void SetUserDirectories (IEnumerable< string > paths)
 Sets the list of custom implementation directories in the current user configuration. More...
 
static IEnumerable< string > GetMachineWideDirectories ()
 Returns a list of custom implementation directories in the current machine-wide configuration. More...
 
static void SetMachineWideDirectories (IEnumerable< string > paths)
 Sets the list of custom implementation directories in the current machine-wide configuration. More...
 

Detailed Description

Manages implementation store directories and provides IImplementationStore instances.

Member Function Documentation

◆ Default()

static IImplementationStore ZeroInstall.Store.Implementations.ImplementationStores.Default ( )
inlinestatic

Creates an IImplementationStore instance that uses the default cache locations (based on ImplementationStores.

Exceptions
IOExceptionThere was a problem accessing a configuration file or one of the stores.
UnauthorizedAccessExceptionAccess to a configuration file or one of the stores was not permitted.

◆ GetDirectories()

static IEnumerable<string> ZeroInstall.Store.Implementations.ImplementationStores.GetDirectories ( bool  serviceMode = false)
inlinestatic

Returns a list of paths for implementation directories as defined by configuration files including the default locations.

Parameters
serviceModetrue to exclude the default location in the user profile, e.g., for system services.

Multiple configuration files apply cumulatively. I.e., directories from both the user config and the system config are used.

Exceptions
IOExceptionThere was a problem accessing a configuration file or one of the stores.
UnauthorizedAccessExceptionAccess to a configuration file was not permitted.

◆ GetMachineWideDirectories()

static IEnumerable<string> ZeroInstall.Store.Implementations.ImplementationStores.GetMachineWideDirectories ( )
static

Returns a list of custom implementation directories in the current machine-wide configuration.

Exceptions
IOExceptionThere was a problem accessing a configuration file.
UnauthorizedAccessExceptionAccess to a configuration file was not permitted.

◆ GetUserDirectories()

static IEnumerable<string> ZeroInstall.Store.Implementations.ImplementationStores.GetUserDirectories ( )
static

Returns a list of custom implementation directories in the current user configuration.

Exceptions
IOExceptionThere was a problem accessing a configuration file.
UnauthorizedAccessExceptionAccess to a configuration file was not permitted.

◆ SetMachineWideDirectories()

static void ZeroInstall.Store.Implementations.ImplementationStores.SetMachineWideDirectories ( IEnumerable< string >  paths)
static

Sets the list of custom implementation directories in the current machine-wide configuration.

Parameters
pathsThe list of implementation directories to set.
Exceptions
IOExceptionThere was a problem writing a configuration file.
UnauthorizedAccessExceptionAccess to a configuration file was not permitted.

◆ SetUserDirectories()

static void ZeroInstall.Store.Implementations.ImplementationStores.SetUserDirectories ( IEnumerable< string >  paths)
static

Sets the list of custom implementation directories in the current user configuration.

Parameters
pathsThe list of implementation directories to set.
Exceptions
IOExceptionThere was a problem writing a configuration file.
UnauthorizedAccessExceptionAccess to a configuration file was not permitted.

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