Table of Contents

Class WriteBytesToFileAction

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Represents a plugin prerequisite action that copies a folder

public class WriteBytesToFileAction : PluginPrerequisiteAction
Inheritance
object
CorePropertyChanged
WriteBytesToFileAction
Inherited Members

Constructors

WriteBytesToFileAction(string, string, byte[])

Creates a new instance of a copy folder action

public WriteBytesToFileAction(string name, string target, byte[] content)

Parameters

name string

The name of the action

target string

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

content byte[]

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

ByteContent

Gets the bytes that will be written

public byte[] ByteContent { get; }

Property Value

byte[]

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