2025-03-23 17:30:50 -05:00
|
|
|
using LANCommander.Server.Services.Enums;
|
|
|
|
|
using LANCommander.Server.Services.Models;
|
|
|
|
|
|
|
|
|
|
namespace LANCommander.Server.Services.Abstractions;
|
|
|
|
|
|
|
|
|
|
public interface IServerEngine
|
|
|
|
|
{
|
2025-03-24 00:19:33 -05:00
|
|
|
public Task InitializeAsync();
|
|
|
|
|
public bool IsManaging(Guid serverId);
|
2025-03-23 17:30:50 -05:00
|
|
|
public Task StartAsync(Guid serverId);
|
|
|
|
|
public Task StopAsync(Guid serverId);
|
2025-07-30 19:29:18 -05:00
|
|
|
public Task<ServerProcessStatus> GetStatusAsync(Guid serverId);
|
2025-03-23 17:30:50 -05:00
|
|
|
public event EventHandler<ServerStatusUpdateEventArgs> OnServerStatusUpdate;
|
|
|
|
|
public event EventHandler<ServerLogEventArgs> OnServerLog;
|
|
|
|
|
}
|