C# Class ZeroInstall.Store.ManagerBase

Common base class for managers that need an ITaskHandler and Mutex-based locking.
Inheritance: IDisposable
Afficher le fichier Open project: 0install/0install-win

Protected Properties

Свойство Type Description
Handler ITaskHandler

Méthodes publiques

Méthode Description
Dispose ( ) : void

Méthodes protégées

Méthode Description
AquireMutex ( ) : void

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

Dispose ( bool disposing ) : void

Releases the mutex.

ManagerBase ( [ handler, bool machineWide = false ) : System

Creates a new manager.

Method Details

AquireMutex() protected méthode

Tries to aquire a mutex with the name MutexName. Call this at the end of your constructors.
Another process is already holding the mutex.
protected AquireMutex ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Releases the mutex.
protected Dispose ( bool disposing ) : void
disposing bool true if called manually and not by the garbage collector.
Résultat void

ManagerBase() protected méthode

Creates a new manager.
protected ManagerBase ( [ handler, bool machineWide = false ) : System
handler [ A callback object used when the the user needs to be asked questions or informed about download and IO tasks.
machineWide bool Apply operations machine-wide instead of just for the current user.
Résultat System

Property Details

Handler protected_oe property

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