Class ExtractArchiveAction
Represents a plugin prerequisite action that extracts a ZIP file
public class ExtractArchiveAction : PluginPrerequisiteAction
- Inheritance
-
objectCorePropertyChangedExtractArchiveAction
- Inherited Members
Constructors
ExtractArchiveAction(string, string, string)
Creates a new instance of ExtractArchiveAction.
public ExtractArchiveAction(string name, string fileName, string target)
Parameters
namestringThe name of the action
fileNamestringThe ZIP file to extract
targetstringThe folder into which to extract the file
Properties
FileName
Gets the file to extract
public string FileName { get; }
Property Value
FilesToExtract
Gets or sets an optional list of files to extract, if null all files will be extracted.
public List<string>? FilesToExtract { get; set; }
Property Value
Target
Gets the folder into which to extract the file
public string Target { get; }
Property Value
Methods
Execute(CancellationToken)
Called when the action must execute
public override Task Execute(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken