Zero Install .NET API 2.20.0
ZeroInstall.DesktopIntegration.ConflictDataUtils Class Reference

Helper methods for creating ConflictData lists. More...

Static Public Member Functions

static void CheckForConflicts (this AppList appList, [InstantHandle] IEnumerable< AccessPoint > accessPoints, AppEntry appEntry)
 Checks new AccessPoint candidates for conflicts with existing ones. More...
 
static IDictionary< string, ConflictDataGetConflictData (this IEnumerable< AccessPoint > accessPoints, AppEntry appEntry)
 Returns all ConflictDatas for a set of new AccessPoint candidates. More...
 
static IDictionary< string, ConflictDataGetConflictData (this IEnumerable< AppEntry > appEntries)
 Returns all ConflictDatas for a set of existing AppEntrys. More...
 

Detailed Description

Helper methods for creating ConflictData lists.

Member Function Documentation

◆ CheckForConflicts()

static void ZeroInstall.DesktopIntegration.ConflictDataUtils.CheckForConflicts ( this AppList  appList,
[InstantHandle] IEnumerable< AccessPoint accessPoints,
AppEntry  appEntry 
)
inlinestatic

Checks new AccessPoint candidates for conflicts with existing ones.

Parameters
appListThe AppList containing the existing AccessPoints.
accessPointsThe set of AccessPoints candidates to check.
appEntryThe AppEntry the accessPoints are intended for.
Exceptions
KeyNotFoundExceptionAn AccessPoint reference to a Capability is invalid.
ConflictExceptionOne or more of the accessPoints would cause a conflict with the existing AccessPoints in AppList.

◆ GetConflictData() [1/2]

static IDictionary< string, ConflictData > ZeroInstall.DesktopIntegration.ConflictDataUtils.GetConflictData ( this IEnumerable< AccessPoint accessPoints,
AppEntry  appEntry 
)
inlinestatic

Returns all ConflictDatas for a set of new AccessPoint candidates.

Parameters
accessPointsThe set of AccessPoints candidates to build the list for.
appEntryThe AppEntry the accessPoints are intended for.
Returns
A dictionary of AccessPoint.GetConflictIDs mapping to the according ConflictData.
Exceptions
ConflictExceptionThere are inner conflicts within accessPoints .
See also
AccessPoint.GetConflictIDs

◆ GetConflictData() [2/2]

static IDictionary< string, ConflictData > ZeroInstall.DesktopIntegration.ConflictDataUtils.GetConflictData ( this IEnumerable< AppEntry appEntries)
inlinestatic

Returns all ConflictDatas for a set of existing AppEntrys.

Parameters
appEntriesThe AppEntrys to build the list for.
Returns
A dictionary of AccessPoint.GetConflictIDs mapping to the according ConflictData.
Exceptions
ConflictExceptionThere are preexisting conflicts within appEntries .
See also
AccessPoint.GetConflictIDs

The documentation for this class was generated from the following file: