mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 17:22:54 -07:00
Added the ability to run a user defined update script #1460
This commit is contained in:
parent
ef8b73972e
commit
b4d01386a6
12 changed files with 378 additions and 27 deletions
21
src/Ombi.Helpers/IProcessProvider.cs
Normal file
21
src/Ombi.Helpers/IProcessProvider.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue