Zero Install .NET API 2.20.0
ZeroInstall.Store.ManagerBase Class Reference

Common base class for managers that need an ITaskHandler and Mutex-based locking. More...

Inheritance diagram for ZeroInstall.Store.ManagerBase:
ZeroInstall.DesktopIntegration.IntegrationManagerBase ZeroInstall.DesktopIntegration.IntegrationManager ZeroInstall.DesktopIntegration.CategoryIntegrationManager ZeroInstall.DesktopIntegration.SyncIntegrationManager

Public Member Functions

void Dispose ()
 Releases the mutex.
 

Protected Member Functions

void AcquireMutex ()
 Tries to acquire a mutex with the name MutexName. Call this at the end of your constructors. More...
 

Protected Attributes

readonly ITaskHandler Handler
 A callback object used when the the user needs to be asked questions or informed about download and IO tasks.
 

Properties

bool MachineWide [get]
 Apply operations machine-wide instead of just for the current user.
 
abstract string MutexName [get]
 The name of the cross-process mutex used by AcquireMutex.
 

Detailed Description

Common base class for managers that need an ITaskHandler and Mutex-based locking.

Member Function Documentation

◆ AcquireMutex()

void ZeroInstall.Store.ManagerBase.AcquireMutex ( )
inlineprotected

Tries to acquire a mutex with the name MutexName. Call this at the end of your constructors.

Exceptions
TimeoutExceptionAnother process is already holding the mutex.

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