Table of Contents

Class WriteStringToFileAction

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

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 string

The name of the action

target string

The target file to write to (will be created if needed)

content string

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

public bool Append { get; set; }

Property Value

bool

Content

Gets the string that will be written

public string Content { get; }

Property Value

string

Target

Gets or sets the target file

public string Target { get; }

Property Value

string

Methods

Execute(CancellationToken)

Called when the action must execute

public override Task Execute(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task