Table of Contents

Class ConflictDataUtils

Namespace
ZeroInstall.DesktopIntegration
Assembly
ZeroInstall.DesktopIntegration.dll

Helper methods for creating ConflictData lists.

public static class ConflictDataUtils
Inheritance
ConflictDataUtils
Inherited Members

Methods

CheckForConflicts(AppList, IEnumerable<AccessPoint>, AppEntry)

Checks new AccessPoint candidates for conflicts with existing ones.

public static void CheckForConflicts(this AppList appList, IEnumerable<AccessPoint> accessPoints, AppEntry appEntry)

Parameters

appList AppList

The AppList containing the existing AccessPoints.

accessPoints IEnumerable<AccessPoint>

The set of AccessPoints candidates to check.

appEntry AppEntry

The AppEntry the accessPoints are intended for.

Exceptions

KeyNotFoundException

An AccessPoint reference to a Capability is invalid.

ConflictException

One or more of the accessPoints would cause a conflict with the existing AccessPoints in AppList.

GetConflictData(IEnumerable<AccessPoint>, AppEntry)

Returns all ConflictDatas for a set of new AccessPoint candidates.

public static IDictionary<string, ConflictData> GetConflictData(this IEnumerable<AccessPoint> accessPoints, AppEntry appEntry)

Parameters

accessPoints IEnumerable<AccessPoint>

The set of AccessPoints candidates to build the list for.

appEntry AppEntry

The AppEntry the accessPoints are intended for.

Returns

IDictionary<string, ConflictData>

A dictionary of conflict IDs mapping to the according ConflictData.

Exceptions

ConflictException

There are inner conflicts within accessPoints.

GetConflictData(IEnumerable<AppEntry>)

Returns all ConflictDatas for a set of existing AppEntrys.

public static IDictionary<string, ConflictData> GetConflictData(this IEnumerable<AppEntry> appEntries)

Parameters

appEntries IEnumerable<AppEntry>

The AppEntrys to build the list for.

Returns

IDictionary<string, ConflictData>

A dictionary of conflict IDs mapping to the according ConflictData.

Exceptions

ConflictException

There are preexisting conflicts within appEntries.