Table of Contents

Class ProcessActivationRequirement

Namespace
Artemis.Core.Modules
Assembly
Artemis.Core.dll

Evaluates to true or false by checking if the specified process is running

public class ProcessActivationRequirement : IModuleActivationRequirement
Inheritance
object
ProcessActivationRequirement
Implements

Constructors

ProcessActivationRequirement(string?, string?)

Creates a new instance of the ProcessActivationRequirement class

public ProcessActivationRequirement(string? processName, string? location = null)

Parameters

processName string

The name of the process that must run

location string

The location of where the process must be running from (optional)

Properties

Location

The location of where the process must be running from

public string? Location { get; set; }

Property Value

string

ProcessName

The name of the process that must run

public string? ProcessName { get; set; }

Property Value

string

Methods

Evaluate()

Called to determine whether the activation requirement is met

public bool Evaluate()

Returns

bool

GetUserFriendlyDescription()

Returns a user-friendly description of the activation requirement, should include parameters if applicable

public string GetUserFriendlyDescription()

Returns

string

A user-friendly description of the activation requirement