Show / Hide Table of Contents

Class ManagerBase

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

Inheritance
Object
ManagerBase
SelfManager
IntegrationManagerBase
Implements
IDisposable
Namespace: ZeroInstall.Store
Assembly: ZeroInstall.Store.dll
Syntax
public abstract class ManagerBase : Object

Constructors

ManagerBase(ITaskHandler, Boolean)

Declaration
public ManagerBase(ITaskHandler handler, bool machineWide)
Parameters
Type Name Description
ITaskHandler handler
Boolean machineWide

Fields

Handler

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

Declaration
protected readonly ITaskHandler Handler
Field Value
Type Description
ITaskHandler

Properties

MachineWide

Apply operations machine-wide instead of just for the current user.

Declaration
public bool MachineWide { get; }
Property Value
Type Description
Boolean

MutexName

The name of the cross-process mutex used by AcquireMutex().

Declaration
protected abstract string MutexName { get; }
Property Value
Type Description
String

Methods

AcquireMutex()

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

Declaration
protected void AcquireMutex()
Exceptions
Type Condition
TimeoutException

Another process is already holding the mutex.

Dispose()

Releases the mutex.

Declaration
public void Dispose()

Implements

System.IDisposable
In This Article
Back to top Copyright Bastian Eicher et al