Table of Contents

Class ExecuteFileAction

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Represents a plugin prerequisite action that executes a file

public class ExecuteFileAction : PluginPrerequisiteAction
Inheritance
object
CorePropertyChanged
ExecuteFileAction
Inherited Members

Constructors

ExecuteFileAction(string, string, string?, bool, bool)

Creates a new instance of ExecuteFileAction

public ExecuteFileAction(string name, string fileName, string? arguments = null, bool waitForExit = true, bool elevate = false)

Parameters

name string

The name of the action

fileName string

The target file to execute

arguments string

A set of command-line arguments to use when starting the application

waitForExit bool

A boolean indicating whether the action should wait for the process to exit

elevate bool

A boolean indicating whether the file should run with administrator privileges

Properties

Arguments

Gets a set of command-line arguments to use when starting the application

public string? Arguments { get; }

Property Value

string

Elevate

Gets a boolean indicating whether the file should run with administrator privileges

public bool Elevate { get; }

Property Value

bool

FileName

Gets the target file to execute

public string FileName { get; }

Property Value

string

WaitForExit

Gets a boolean indicating whether the action should wait for the process to exit

public bool WaitForExit { get; }

Property Value

bool

Methods

Execute(CancellationToken)

Called when the action must execute

public override Task Execute(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task