Пример #1
0
        public override Task <ChooseO> Choose(ChooseI request, ServerCallContext context)
        {
            var _out = _.Choose(request.ServiceName, request.Metodo);

            return(Task.FromResult(new ChooseO {
                Id = _out.Id,
                Ip = _out.Ip,
                Port = _out.Port,
                Name = _out.Name,
                Status = _out.Status
            }));
        }
Пример #2
0
        public ChooseO Choose(ChooseI input)
        {
            var _out = client.Choose(input);

            return(_out);
        }