Class ConflictDataUtils
Helper methods for creating ConflictData lists.
Namespace: ZeroInstall.DesktopIntegration
Assembly: ZeroInstall.DesktopIntegration.dll
Syntax
public static class ConflictDataUtils : Object
Methods
CheckForConflicts(AppList, IEnumerable<AccessPoint>, AppEntry)
Checks new AccessPoint candidates for conflicts with existing ones.
Declaration
public static void CheckForConflicts(this AppList appList, IEnumerable<AccessPoint> accessPoints, AppEntry appEntry)
Parameters
Type | Name | Description |
---|---|---|
AppList | appList | The AppList containing the existing AccessPoints. |
IEnumerable<AccessPoint> | accessPoints | The set of AccessPoints candidates to check. |
AppEntry | appEntry | The AppEntry the |
Exceptions
Type | Condition |
---|---|
KeyNotFoundException | An AccessPoint reference to a Capability is invalid. |
ConflictException | One or more of the |
GetConflictData(IEnumerable<AccessPoint>, AppEntry)
Returns all ConflictDatas for a set of new AccessPoint candidates.
Declaration
public static IDictionary<string, ConflictData> GetConflictData(this IEnumerable<AccessPoint> accessPoints, AppEntry appEntry)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<AccessPoint> | accessPoints | The set of AccessPoints candidates to build the list for. |
AppEntry | appEntry | The AppEntry the |
Returns
Type | Description |
---|---|
IDictionary<String, ConflictData> | A dictionary of GetConflictIDs(AppEntry) mapping to the according ConflictData. |
Exceptions
Type | Condition |
---|---|
ConflictException | There are inner conflicts within |
See Also
GetConflictData(IEnumerable<AppEntry>)
Returns all ConflictDatas for a set of existing AppEntrys.
Declaration
public static IDictionary<string, ConflictData> GetConflictData(this IEnumerable<AppEntry> appEntries)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<AppEntry> | appEntries | The AppEntrys to build the list for. |
Returns
Type | Description |
---|---|
IDictionary<String, ConflictData> | A dictionary of GetConflictIDs(AppEntry) mapping to the according ConflictData. |
Exceptions
Type | Condition |
---|---|
ConflictException | There are preexisting conflicts within |