AssetInventoryActionContext
public sealed class AssetInventoryActionContext : DictionaryActionContextAssetInventory-specific action context that extends the base context with loaded assets and files for action steps to use.
Methods
Section titled “Methods”
SetLoadedAssets(List, AssetOperation)
Section titled “SetLoadedAssets(List, AssetOperation)”public static void SetLoadedAssets(List<AssetInfo> assets, LoadAssetsStep.AssetOperation operation)Sets the loaded assets with the specified operation.
Parameters
| Name | Type |
|---|---|
assets |
System.Collections.Generic.List{AssetInventory.AssetInfo} |
operation |
AssetInventory.LoadAssetsStep.AssetOperation |
GetAssetsForStep()
Section titled “GetAssetsForStep()”public static List<AssetInfo> GetAssetsForStep()Gets assets for a step to use. Returns loaded assets if LoadAssetsStep was executed, otherwise returns default query with filters.
Returns
System.Collections.Generic.List{AssetInventory.AssetInfo}
SetLoadedFiles(List, FileOperation)
Section titled “SetLoadedFiles(List, FileOperation)”public static void SetLoadedFiles(List<AssetInfo> files, LoadFilesStep.FileOperation operation)Sets the loaded files with the specified operation.
Parameters
| Name | Type |
|---|---|
files |
System.Collections.Generic.List{AssetInventory.AssetInfo} |
operation |
AssetInventory.LoadFilesStep.FileOperation |
GetFilesForStep()
Section titled “GetFilesForStep()”public static List<AssetInfo> GetFilesForStep()Gets files for a step to use. Returns loaded files if LoadFilesStep was executed, otherwise returns empty list.
Returns
System.Collections.Generic.List{AssetInventory.AssetInfo}
Constructors
Section titled “Constructors”
AssetInventoryActionContext()
Section titled “AssetInventoryActionContext()”public AssetInventoryActionContext()Properties
Section titled “Properties”
LoadedAssets
Section titled “LoadedAssets”public List<AssetInfo> LoadedAssets { get; set; }Gets or sets the loaded assets for subsequent steps.
Returns
System.Collections.Generic.List{AssetInventory.AssetInfo}
LoadedFiles
Section titled “LoadedFiles”public List<AssetInfo> LoadedFiles { get; set; }Gets or sets the loaded files for subsequent steps.
Returns
System.Collections.Generic.List{AssetInventory.AssetInfo}
Current
Section titled “Current”public static AssetInventoryActionContext Current { get; }Gets the current context as AssetInventoryActionContext, or null if not available.
Returns
AssetInventory.AssetInventoryActionContext