Ejemplo n.º 1
0
 public override Task <ZodiacReply> GetSign(ZodiacRequest request, ServerCallContext context)
 {
     return(Task.FromResult(new ZodiacReply
     {
         ZodiacSign = "Your zodiac sign is: " + FindBySeason(request.DateOfBirth)
     }));
 }
Ejemplo n.º 2
0
        public override Task <ZodiacResponse> Zodiac(ZodiacRequest request, ServerCallContext context)
        {
            var result = getHoroscope(request.Message);

            System.Console.WriteLine("Date requested:", request.Message);

            return(Task.FromResult(new ZodiacResponse()
            {
                Response = result
            }));
        }