Exemplo n.º 1
0
        /*
         * Alternatively, we can abstract common SOAP logic to a separate helper method and
         * have it wrap around our business logic, like so:
         */
        public async Task <string> SayHelloWithHelper(string firstName)
        {
            return(await SoapHelper.IssueSoapCallAsync(_client, async (channel) =>
            {
                var result = await channel.sayHelloAsync(new sayHelloRequest(firstName));

                return result.greeting;
            }, _logger));
        }