Class ManagerBase
- Namespace
- ZeroInstall.Store
- Assembly
- ZeroInstall.Store.dll
Common base class for managers that need an ITaskHandler and Mutex-based locking.
[MustDisposeResource]
public abstract class ManagerBase : IDisposable
- Inheritance
-
ManagerBase
- Implements
- Derived
- Inherited Members
Constructors
ManagerBase(ITaskHandler, bool)
Common base class for managers that need an ITaskHandler and Mutex-based locking.
protected ManagerBase(ITaskHandler handler, bool machineWide)
Parameters
handler
ITaskHandlerA callback object used when the user needs to be asked questions or informed about download and IO tasks.
machineWide
boolApply operations machine-wide instead of just for the current user.
Fields
Handler
A callback object used when the user needs to be asked questions or informed about download and IO tasks.
protected readonly ITaskHandler Handler
Field Value
Properties
MachineWide
Apply operations machine-wide instead of just for the current user.
public bool MachineWide { get; }
Property Value
MutexName
The name of the cross-process mutex used by AcquireMutex().
protected abstract string MutexName { get; }
Property Value
Methods
AcquireMutex()
Tries to acquire a mutex with the name MutexName. Call this at the end of your constructors.
protected void AcquireMutex()
Exceptions
- TimeoutException
Another process is already holding the mutex.
Dispose()
Releases the mutex.
public virtual void Dispose()