Interface IProcessManager
Namespace: Emby.Model.ProcessRun
Assembly: MediaBrowser.Model.dll
Syntax
public interface IProcessManager
Methods
CreateProcessRunner(String, ILogger)
Declaration
IProcessRunner CreateProcessRunner(string name, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
ILogger | logger |
Returns
Type | Description |
---|---|
IProcessRunner |
GetRunningProcesses()
Returns a list of currently running processes.
Declaration
IReadOnlyCollection<IProcessRunner> GetRunningProcesses()
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<IProcessRunner> |
RegisterProcess(IProcessRunner)
Registers a process.
Declaration
[Obsolete("Do not use. Process registration is done automatcially now.")]
bool RegisterProcess(IProcessRunner processRunner)
Parameters
Type | Name | Description |
---|---|---|
IProcessRunner | processRunner | The process runner. |
Returns
Type | Description |
---|---|
System.Boolean | True, if the process was registered successfully; false it the process was registered already. |
StopAllProcesses()
Stops all processes.
Declaration
Task StopAllProcesses()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task that will complete once all processes have been stopped. |
UnregisterProcess(IProcessRunner)
Unregisters the process.
Declaration
[Obsolete("Do not use. Process registration is done automatcially now.")]
bool UnregisterProcess(IProcessRunner processRunner)
Parameters
Type | Name | Description |
---|---|---|
IProcessRunner | processRunner | The process runner. |
Returns
Type | Description |
---|---|
System.Boolean | A boolean indicating whether the process had existed and was removed successfully. |
Events
RunningProcessesChanged
Occurs when the list of running processes has changed.
Declaration
event EventHandler<RunningProcessesChangedEventArgs> RunningProcessesChanged
Event Type
Type | Description |
---|---|
System.EventHandler<RunningProcessesChangedEventArgs> |