Exemplo n.º 1
0
        public async Task <string> Urgent(Pharmacy pharmacy, string medicationName)
        {
            var channel = new Channel(pharmacy.APIEndpoint, ChannelCredentials.Insecure);

            var client = new CheckForMedication.CheckForMedicationClient(channel);

            MessageResponseProto response = await client.urgentAsync(new MessageProto()
            {
                Message = medicationName
            });

            return(response.Response);
        }