Class ProcessMonitor
Inheritance
ProcessMonitor
Assembly: Artemis.Core.dll
Syntax
public static class ProcessMonitor
Properties
IsStarted
Declaration
public static bool IsStarted { get; }
Property Value
LastUpdate
Declaration
public static DateTime LastUpdate { get; }
Property Value
Processes
Declaration
public static ImmutableArray<ProcessInfo> Processes { get; }
Property Value
UpdateInterval
Declaration
public static TimeSpan UpdateInterval { get; set; }
Property Value
Methods
IsProcessRunning(string?, string?)
Returns whether the specified process is running
Declaration
public static bool IsProcessRunning(string? processName = null, string? processLocation = null)
Parameters
Type |
Name |
Description |
string |
processName |
The name of the process to check
|
string |
processLocation |
The location of where the process must be running from (optional)
|
Returns
Start()
Declaration
public static void Start()
Stop()
Declaration
public static void Stop()
Events
ProcessStarted
Declaration
public static event EventHandler<ProcessEventArgs>? ProcessStarted
Event Type
ProcessStopped
Declaration
public static event EventHandler<ProcessEventArgs>? ProcessStopped
Event Type