Artemis Artemis
Artemis Artemis

Search Results for

    Class ProcessMonitor

    Inheritance
    object
    ProcessMonitor
    Namespace: Artemis.Core.Services
    Assembly: Artemis.Core.dll
    Syntax
    public static class ProcessMonitor

    Properties

    IsStarted

    Declaration
    public static bool IsStarted { get; }
    Property Value
    Type Description
    bool

    LastUpdate

    Declaration
    public static DateTime LastUpdate { get; }
    Property Value
    Type Description
    DateTime

    Processes

    Declaration
    public static ImmutableArray<ProcessInfo> Processes { get; }
    Property Value
    Type Description
    ImmutableArray<ProcessInfo>

    UpdateInterval

    Declaration
    public static TimeSpan UpdateInterval { get; set; }
    Property Value
    Type Description
    TimeSpan

    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
    Type Description
    bool

    Start()

    Declaration
    public static void Start()

    Stop()

    Declaration
    public static void Stop()

    Events

    ProcessStarted

    Declaration
    public static event EventHandler<ProcessEventArgs>? ProcessStarted
    Event Type
    Type Description
    EventHandler<ProcessEventArgs>

    ProcessStopped

    Declaration
    public static event EventHandler<ProcessEventArgs>? ProcessStopped
    Event Type
    Type Description
    EventHandler<ProcessEventArgs>
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.