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
- 
      objectAssetBaseAnalysis
- Inherited Members
Constructors
AssetBaseAnalysis(PackageSession)
Initializes a new instance of the AssetBaseAnalysis class.
public AssetBaseAnalysis(PackageSession packageSession)Parameters
- packageSessionPackageSession
- The package session. 
Methods
Run(ILogger)
Performs a wide package validation analysis.
public override void Run(ILogger log)Parameters
- logILogger
- The 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
- assetItemAssetItem
- The 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
- logILogger
- The log to output the result of the analysis.