C# Класс ZeroInstall.DesktopIntegration.IntegrationManager

Manages an AppList and desktop integration via AccessPoints.
To prevent race-conditions there may only be one desktop integration class instance active at any given time. This class acquires a mutex upon calling its constructor and releases it upon calling IDisposable.Dispose.
Наследование: IntegrationManagerBase
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ChangedWindowMessageID int

Открытые методы

Метод Описание
IntegrationManager ( [ appListPath, [ handler, bool machineWide = false ) : System

Creates a new integration manager using a custom DesktopIntegration.AppList. Uses no mutex!

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

Creates a new integration manager using the default DesktopIntegration.AppList (creating a new one if missing). Performs Mutex-based locking!

Защищенные методы

Метод Описание
AddAccessPointsInternal ( AppEntry appEntry, Feed feed, IEnumerable accessPoints ) : void
AddAppInternal ( FeedTarget target ) : AppEntry
AddAppInternal ( string petName, Requirements requirements, Feed feed ) : AppEntry
AddAppInternal ( AppEntry prototype, Feed>.Converter feedRetriever ) : void
Finish ( ) : void
RemoveAccessPointsInternal ( AppEntry appEntry, IEnumerable accessPoints ) : void
RemoveAppInternal ( AppEntry appEntry ) : void
RepairAppInternal ( AppEntry appEntry, Feed feed ) : void
UpdateAppInternal ( AppEntry appEntry, Feed feed ) : void

Приватные методы

Метод Описание
DeleteAppDir ( AppEntry appEntry ) : void
WriteAppDir ( AppEntry appEntry ) : void

Описание методов

AddAccessPointsInternal() защищенный Метод

protected AddAccessPointsInternal ( AppEntry appEntry, Feed feed, IEnumerable accessPoints ) : void
appEntry AppEntry
feed Feed
accessPoints IEnumerable
Результат void

AddAppInternal() защищенный Метод

protected AddAppInternal ( FeedTarget target ) : AppEntry
target ZeroInstall.Store.FeedTarget
Результат AppEntry

AddAppInternal() защищенный Метод

protected AddAppInternal ( string petName, Requirements requirements, Feed feed ) : AppEntry
petName string
requirements Requirements
feed Feed
Результат AppEntry

AddAppInternal() защищенный Метод

protected AddAppInternal ( AppEntry prototype, Feed>.Converter feedRetriever ) : void
prototype AppEntry
feedRetriever Feed>.Converter
Результат void

Finish() защищенный Метод

protected Finish ( ) : void
Результат void

IntegrationManager() публичный Метод

Creates a new integration manager using a custom DesktopIntegration.AppList. Uses no mutex!
does not existing. A problem occurs while accessing . Read or write access to file is not permitted. A problem occurs while deserializing the XML data.
public IntegrationManager ( [ appListPath, [ handler, bool machineWide = false ) : System
appListPath [ The storage location of the file.
handler [ A callback object used when the the user is to be informed about the progress of long-running operations such as downloads.
machineWide bool Apply operations machine-wide instead of just for the current user.
Результат System

IntegrationManager() публичный Метод

Creates a new integration manager using the default DesktopIntegration.AppList (creating a new one if missing). Performs Mutex-based locking!
A problem occurs while accessing the file. Read or write access to the file is not permitted or another desktop integration class is currently active. A problem occurs while deserializing the XML data.
public IntegrationManager ( [ handler, bool machineWide = false ) : System
handler [ A callback object used when the the user is to be informed about the progress of long-running operations such as downloads.
machineWide bool Apply operations machine-wide instead of just for the current user.
Результат System

RemoveAccessPointsInternal() защищенный Метод

protected RemoveAccessPointsInternal ( AppEntry appEntry, IEnumerable accessPoints ) : void
appEntry AppEntry
accessPoints IEnumerable
Результат void

RemoveAppInternal() защищенный Метод

protected RemoveAppInternal ( AppEntry appEntry ) : void
appEntry AppEntry
Результат void

RepairAppInternal() защищенный Метод

protected RepairAppInternal ( AppEntry appEntry, Feed feed ) : void
appEntry AppEntry
feed Feed
Результат void

UpdateAppInternal() защищенный Метод

protected UpdateAppInternal ( AppEntry appEntry, Feed feed ) : void
appEntry AppEntry
feed Feed
Результат void

Описание свойств

ChangedWindowMessageID публичное статическое свойство

The window message ID (for use with WindowsUtils.BroadcastMessage) that signals integration changes to interested observers.
public static int ChangedWindowMessageID
Результат int