Re-implemented everything using ASP.NET. Changed some requests to use JSON instead of FORM data. Some work towards deleting the FIXMEGlobal instance. Auth is missing, XSRF does not work correctly.
25 lines
478 B
C#
25 lines
478 B
C#
namespace Duplicati.WebserverCore.Abstractions;
|
|
|
|
public interface ICommandlineRunService
|
|
{
|
|
public IActiveRun? GetActiveRun(string id);
|
|
|
|
string StartTask(string[] args);
|
|
|
|
public interface IActiveRun
|
|
{
|
|
string ID { get; }
|
|
DateTime LastAccess { get; }
|
|
object Lock { get; }
|
|
|
|
bool Finished { get; }
|
|
bool Started { get; }
|
|
bool IsLogDisposed { get; }
|
|
|
|
IEnumerable<string> GetLog();
|
|
|
|
void Abort();
|
|
|
|
}
|
|
}
|