IPCPresenter now takes IPCMediator as contructor argument.

This commit is contained in:
Harrison Deng 2021-04-15 22:14:08 -05:00
parent 58c5b46dff
commit cac5ca054c

View File

@ -10,6 +10,11 @@ namespace GameServiceWarden.Core.UI
{ {
private IPCMediator mediator; private IPCMediator mediator;
public IPCPresenter(IPCMediator mediator)
{
this.mediator = mediator;
}
public void Present(ServiceManagerState state) public void Present(ServiceManagerState state)
{ {
Task replyTask = mediator.ReplyAll(CommunicableType.Service, JsonSerializer.SerializeToUtf8Bytes(state)); Task replyTask = mediator.ReplyAll(CommunicableType.Service, JsonSerializer.SerializeToUtf8Bytes(state));