Class WriteStringToFileAction
Represents a plugin prerequisite action that copies a folder
public class WriteStringToFileAction : PluginPrerequisiteAction
- Inheritance
-
WriteStringToFileAction
- Inherited Members
Constructors
WriteStringToFileAction(string, string, string)
Creates a new instance of a copy folder action
public WriteStringToFileAction(string name, string target, string content)
Parameters
name
stringThe name of the action
target
stringThe target file to write to (will be created if needed)
content
stringThe contents to write
Properties
Append
Gets or sets a boolean indicating whether or not to append to the file if it exists already, if set to false the file will be deleted and recreated
public bool Append { get; set; }
Property Value
Content
Gets the string that will be written
public string Content { get; }
Property Value
Target
Gets or sets the target file
public string Target { get; }
Property Value
Methods
Execute(CancellationToken)
Called when the action must execute
public override Task Execute(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken