18 lines
506 B
C#
18 lines
506 B
C#
|
using System.Text.Json;
|
||
|
using System.Threading.Tasks;
|
||
|
using GameServiceWarden.API.Communicable;
|
||
|
using GameServiceWarden.API.Games;
|
||
|
using GameServiceWarden.Core.Games;
|
||
|
|
||
|
namespace GameServiceWarden.Core.UI
|
||
|
{
|
||
|
public class IPCPresenter : IServiceManagerMonitor
|
||
|
{
|
||
|
private IPCMediator mediator;
|
||
|
|
||
|
public void Present(ServiceManagerState state)
|
||
|
{
|
||
|
Task replyTask = mediator.ReplyAll(CommunicableType.Service, JsonSerializer.SerializeToUtf8Bytes(state));
|
||
|
}
|
||
|
}
|
||
|
}
|