Class WriteBytesToFileAction
Represents a plugin prerequisite action that copies a folder
public class WriteBytesToFileAction : PluginPrerequisiteAction
- Inheritance
-
objectCorePropertyChangedWriteBytesToFileAction
- 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
namestringThe name of the action
targetstringThe target file to write to (will be created if needed)
contentbyte[]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
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
Methods
Execute(CancellationToken)
Called when the action must execute
public override Task Execute(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken