Interface ILemonEdgeProcessManager
Allows for the creation and management of LemonEdge client and service processes.
Namespace: LemonEdge.Tools.ProcessUtilities
Assembly: LemonEdge.Tools.ProcessUtilities.dll
Syntax
public interface ILemonEdgeProcessManager
Methods
KillAllRunningProcess()
Stops all running processes started by the current instance
Declaration
void KillAllRunningProcess()
KillProcess(Guid)
Stops a process by it's id.
Declaration
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
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
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
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> |