This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
gameservicewarden/src/GameServiceWarden.Core/UI/IPCPresenter.cs

18 lines
506 B
C#
Raw Normal View History

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));
}
}
}