Search Results for

    Show / Hide Table of Contents

    Interface IProcessUtils

    Process utility methods, providing functionality related to retrieving process information.

    Namespace: LemonEdge.DesktopTools.Debugger.Utils.Interfaces
    Assembly: LemonEdge.DesktopTools.dll
    Syntax
    public interface IProcessUtils

    Methods

    GetProcessIdAsync(string, int)

    Retrieves the process ID based on the specified process name.

    Declaration
    Task<int> GetProcessIdAsync(string processName, int attempt = 1)
    Parameters
    Type Name Description
    string processName

    The name of the process for which to retrieve the ID.

    int attempt

    Optional parameter specifying the attempt number (default is 1).

    Returns
    Type Description
    Task<int>

    The process ID if found; otherwise, a default value (-1).

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.