Class LemonEdgeProcessManager
Implements
Inherited Members
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 | |
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> |