public override Task <NewClientReply> NewClient(NewClientRequest req, ServerCallContext _) { var input = string.Concat( PCSManager.ClientHeader(req.Uname, req.URL, req.Script), PCSManager.Partitions(req.SParts), PCSManager.Servers(req.Servs) ); PCSManager.NewProcess(exeClient, input); return(Task.FromResult(new NewClientReply())); }
public override Task <NewServerReply> NewServer(NewServerRequest req, ServerCallContext _) { var input = string.Concat( PCSManager.ServerHeader(req.IdServ, req.URL, req.MinDelay, req.MaxDelay), PCSManager.Partitions(req.SParts), PCSManager.Servers(req.Servs) ); PCSManager.NewProcess(exeServer, input); return(Task.FromResult(new NewServerReply())); }