Search Results for

    Show / Hide Table of Contents

    Class LemonEdgeProcessManager

    Inheritance
    object
    LemonEdgeProcessManager
    Implements
    ILemonEdgeProcessManager
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Tools.ProcessUtilities
    Assembly: LemonEdge.Tools.ProcessUtilities.dll
    Syntax
    public class LemonEdgeProcessManager : ILemonEdgeProcessManager

    Constructors

    LemonEdgeProcessManager(IProcessControlWrapper, ILogger<LemonEdgeProcessManager>)

    Creates a new LemonEdgeProcessManager.

    Declaration
    public LemonEdgeProcessManager(IProcessControlWrapper processControlWrapper, ILogger<LemonEdgeProcessManager> logger)
    Parameters
    Type Name Description
    IProcessControlWrapper processControlWrapper

    The IProcessControlWrapper

    ILogger<LemonEdgeProcessManager> logger

    A ILogger

    Methods

    KillAllRunningProcess()

    Stops all running processes started by the current instance

    Declaration
    public void KillAllRunningProcess()

    KillProcess(Guid)

    Stops a process by it's id.

    Declaration
    public int KillProcess(Guid id)
    Parameters
    Type Name Description
    Guid id

    The id of the instance to stop

    Returns
    Type Description
    int

    StartClient(Guid, string?, Dictionary<string, string?>?, CancellationToken)

    Starts a LemonEdge Client.

    Declaration
    public Task<Guid> StartClient(Guid id, string? overriddenFullPathToExe = null, Dictionary<string, string?>? args = null, CancellationToken token = default)
    Parameters
    Type Name Description
    Guid id

    A unique id for the instance

    string overriddenFullPathToExe

    An overridden path to the exe

    Dictionary<string, string> args

    Any optional arguments to be passed to the process

    CancellationToken token

    A cancellation token

    Returns
    Type Description
    Task<Guid>

    StartTaskService(Guid, string?, Dictionary<string, string?>?, CancellationToken)

    Starts the LemonEdge Task Service.

    Declaration
    public Task<Guid> StartTaskService(Guid id, string? overriddenFullPathToExe = null, Dictionary<string, string?>? args = null, CancellationToken token = default)
    Parameters
    Type Name Description
    Guid id

    A unique id for the instance

    string overriddenFullPathToExe

    An overridden path to the exe

    Dictionary<string, string> args

    Any optional arguments to be passed to the process

    CancellationToken token

    A cancellation token

    Returns
    Type Description
    Task<Guid>

    StartWebService(Guid, string?, Dictionary<string, string?>?, CancellationToken)

    Starts the LemonEdge Web Service.

    Declaration
    public Task<Guid> StartWebService(Guid id, string? overriddenFullPathToExe = null, Dictionary<string, string?>? args = null, CancellationToken token = default)
    Parameters
    Type Name Description
    Guid id

    A unique id for the instance

    string overriddenFullPathToExe

    An overridden path to the exe

    Dictionary<string, string> args

    Any optional arguments to be passed to the process

    CancellationToken token

    A cancellation token

    Returns
    Type Description
    Task<Guid>

    Implements

    ILemonEdgeProcessManager

    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.