Пример #1
0
        public async Task <string> Get()
        {
            var greeting = await _greetingProvider.GetGreeting();

            _logger.LogInformation($"Returning greeting '{greeting}'");
            return(greeting);
        }
Пример #2
0
 public string Index() => _provider.GetGreeting(false);
Пример #3
0
        public async Task Run()
        {
            var greeting = await _greetingProvider.GetGreeting();

            await _canDoGreeting.SayHello(greeting);
        }