示例#1
0
        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()));
        }
示例#2
0
        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()));
        }