AssetBaseAnalysis Class
Namespace: Stride.Core.Assets.AnalysisAssembly: Stride.Core.Assets.dll
An analysis to validate that all assets in a package have a valid
public sealed class AssetBaseAnalysis : PackageSessionAnalysisBase
Name | Description | |
---|---|---|
Constructors | ||
AssetBaseAnalysis(PackageSession) | Initializes a new instance of the AssetBaseAnalysis class. |
|
Methods | ||
Run(ILogger) | Performs a wide package validation analysis. |
|
ValidateAssetBase(AssetItem) | Validates the inheritance of an asset by checking base accessibility up to the root base. |
|
ValidateAssetBase(AssetItem, ILogger) | Validates the inheritance of an asset by checking base accessibility up to the root base. |
|
ValidateAssetBase(ILogger) | Validates the inheritance of all assets in the package. |
Constructors
AssetBaseAnalysis(PackageSession)
Initializes a new instance of the AssetBaseAnalysis class.
public AssetBaseAnalysis(PackageSession packageSession)
Parameters
Type | Name | Description |
---|---|---|
PackageSession | packageSession | The package session. |
Methods
Run(ILogger)
Performs a wide package validation analysis.
public override void Run(ILogger log)
Parameters
Type | Name | Description |
---|---|---|
ILogger | log | The log to output the result of the validation. |
Overrides
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
Type | Name | Description |
---|---|---|
AssetItem | assetItem | The asset item. |
Returns
Type | Description |
---|---|
LoggerValueResult<System.Collections.Generic.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
Type | Name | Description |
---|---|---|
AssetItem | assetItem | The asset item. |
ILogger | log | The log to output the result of the analysis. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Asset> | A list of all the base in bottom-up order. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | asset or log |
ValidateAssetBase(ILogger)
Validates the inheritance of all assets in the package.
public HashSet<Asset> ValidateAssetBase(ILogger log)
Parameters
Type | Name | Description |
---|---|---|
ILogger | log | The log to output the result of the analysis. |
Returns
Type | Description |
---|---|
System.Collections.Generic.HashSet<Asset> | A collection that contains all valid assets. |