For extensions of base system like podman and btrfs: Started improving server abstractions to make it more extendable in order to support multiple implementations
This commit is contained in:
16
MoonlightServers.Daemon/ServerSys/Abstractions/IConsole.cs
Normal file
16
MoonlightServers.Daemon/ServerSys/Abstractions/IConsole.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace MoonlightServers.Daemon.ServerSys.Abstractions;
|
||||
|
||||
public interface IConsole : IServerComponent
|
||||
{
|
||||
public IAsyncObservable<string> OnOutput { get; }
|
||||
public IAsyncObservable<string> OnInput { get; }
|
||||
|
||||
public Task AttachToRuntime();
|
||||
public Task AttachToInstallation();
|
||||
|
||||
public Task WriteToOutput(string content);
|
||||
public Task WriteToInput(string content);
|
||||
|
||||
public Task ClearOutput();
|
||||
public string[] GetOutput();
|
||||
}
|
||||
Reference in New Issue
Block a user