Class AssetBaseAnalysis
An analysis to validate that all assets in a package have a valid Asset.Base. In order to be valid, this analysis must be run after a PackageAnalysis
public sealed class AssetBaseAnalysis : PackageSessionAnalysisBase
- Inheritance
-
AssetBaseAnalysis
- Inherited Members
Constructors
AssetBaseAnalysis(PackageSession)
Initializes a new instance of the AssetBaseAnalysis class.
public AssetBaseAnalysis(PackageSession packageSession)
Parameters
packageSession
PackageSessionThe package session.
Methods
Run(ILogger)
Performs a wide package validation analysis.
public override void Run(ILogger log)
Parameters
log
ILoggerThe log to output the result of the validation.
ValidateAssetBase(AssetItem)
Validates the inheritance of an asset by checking base accessibility up to the root base.
public LoggerValueResult<List<Asset>> ValidateAssetBase(AssetItem assetItem)
Parameters
assetItem
AssetItemThe asset item.
Returns
- LoggerValueResult<List<Asset>>
A logger result with a list of all the base in bottom-up orde.
ValidateAssetBase(AssetItem, ILogger)
Validates the inheritance of an asset by checking base accessibility up to the root base.
public List<Asset> ValidateAssetBase(AssetItem assetItem, ILogger log)
Parameters
Returns
Exceptions
- ArgumentNullException
asset or log
ValidateAssetBase(ILogger)
Validates the inheritance of all assets in the package.
public HashSet<Asset> ValidateAssetBase(ILogger log)
Parameters
log
ILoggerThe log to output the result of the analysis.