55 lines
1.1 KiB
C#
55 lines
1.1 KiB
C#
using System.Reactive.Linq;
|
|
using System.Reactive.Subjects;
|
|
using MoonlightServers.Daemon.ServerSys.Abstractions;
|
|
|
|
namespace MoonlightServers.Daemon.ServerSys.Implementations;
|
|
|
|
public class DockerInstaller : IInstaller
|
|
{
|
|
public IObservable<object> OnExited => OnExitedSubject;
|
|
public bool IsRunning { get; private set; } = false;
|
|
|
|
private readonly Subject<string> OnExitedSubject = new();
|
|
|
|
private readonly ILogger<DockerInstaller> Logger;
|
|
|
|
public DockerInstaller(ILogger<DockerInstaller> logger)
|
|
{
|
|
Logger = logger;
|
|
}
|
|
|
|
public Task Initialize()
|
|
{
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
public Task Sync()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task Start()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task Abort()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task Cleanup()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public Task<ServerCrash?> SearchForCrash()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public async ValueTask DisposeAsync()
|
|
{
|
|
OnExitedSubject.Dispose();
|
|
}
|
|
} |