public IActionResult TextDetails(RegisterResponse response)
        {
            var client           = new Job.JobClient(_channel);
            var processingResult = client.GetProcessingResult(response);

            var textDetails = new TextDetailsViewModel
            {
                Status = processingResult.Status,
                Rank   = processingResult.Rank
            };

            return(View("TextDetails", textDetails));
        }
Example #2
0
        public IActionResult TextDetails(Riderct id)
        {
            RegisterResponse reply = new RegisterResponse {
                Id = id.Resp
            };


            using var channel = GrpcChannel.ForAddress("http://localhost:5000");
            var client = new Job.JobClient(channel);
            var repl   = client.GetProcessingResult(reply);

            return(View("GetTask", repl));
        }