mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-03-12 04:35:27 -07:00
21 lines
662 B
C#
21 lines
662 B
C#
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using Ombi.Helpers;
|
|
|
|
namespace Ombi.Updater
|
|
{
|
|
public interface IProcessProvider
|
|
{
|
|
bool Exists(int processId);
|
|
bool Exists(string processName);
|
|
List<ProcessInfo> FindProcessByName(string name);
|
|
ProcessInfo GetCurrentProcess();
|
|
int GetCurrentProcessId();
|
|
ProcessInfo GetProcessById(int id);
|
|
void Kill(int processId);
|
|
void KillAll(string processName);
|
|
void SetPriority(int processId, ProcessPriorityClass priority);
|
|
Process Start(string path, string args = null);
|
|
void WaitForExit(Process process);
|
|
}
|
|
} |