Class WriteStringToFileAction
Represents a plugin prerequisite action that copies a folder
Inherited Members
Namespace: Artemis.Core
Assembly: Artemis.Core.dll
Syntax
public class WriteStringToFileAction : PluginPrerequisiteAction
Constructors
WriteStringToFileAction(string, string, string)
Creates a new instance of a copy folder action
Declaration
public WriteStringToFileAction(string name, string target, string content)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the action |
string | target | The target file to write to (will be created if needed) |
string | content | The 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
Declaration
public bool Append { get; set; }
Property Value
Type | Description |
---|---|
bool |
Content
Gets the string that will be written
Declaration
public string Content { get; }
Property Value
Type | Description |
---|---|
string |
Target
Gets or sets the target file
Declaration
public string Target { get; }
Property Value
Type | Description |
---|---|
string |
Methods
Execute(CancellationToken)
Called when the action must execute
Declaration
public override Task Execute(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |