Table of Contents

Class ManagerBase

Namespace
ZeroInstall.Store
Assembly
ZeroInstall.Store.dll

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

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 ITaskHandler

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.

Fields

Handler

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

protected readonly ITaskHandler Handler

Field Value

ITaskHandler

Properties

MachineWide

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

public bool MachineWide { get; }

Property Value

bool

MutexName

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

protected abstract string MutexName { get; }

Property Value

string

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()