2021-04-08 21:36:08 -05:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.IO;
|
|
|
|
|
2021-04-22 16:03:09 -05:00
|
|
|
namespace GameServiceWarden.ModuleFramework
|
2021-04-08 21:36:08 -05:00
|
|
|
{
|
|
|
|
public interface IService
|
|
|
|
{
|
2021-04-19 01:34:45 -05:00
|
|
|
event EventHandler<ServiceState> StateChangeEvent;
|
|
|
|
event EventHandler<string> UpdateLogEvent;
|
2021-04-08 21:36:08 -05:00
|
|
|
IReadOnlyCollection<IServiceConfigurable> Configurables{ get; }
|
2021-04-19 01:34:45 -05:00
|
|
|
void InitializeService();
|
2021-04-08 21:36:08 -05:00
|
|
|
void ElegantShutdown();
|
2021-04-19 01:34:45 -05:00
|
|
|
byte[] GetLogBuffer();
|
2021-04-08 21:36:08 -05:00
|
|
|
void ExecuteCommand(string command);
|
|
|
|
}
|
|
|
|
}
|