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 IPCPresenter(IPCMediator mediator) { this.mediator = mediator; } public void Present(ServiceManagerState state) { Task replyTask = mediator.ReplyAll(CommunicableType.Service, JsonSerializer.SerializeToUtf8Bytes(state)); } } }