示例#1
0
        public async Task <ActionResult> Post()
        {
            _logger.LogInformation($"Entered {nameof(Service1Controller)}:{nameof(Post)}");

            _logger.LogInformation("Calling Service2 from Service1");
            await _service2.PostAsync(new StringContent(string.Empty));

            _logger.LogInformation("Called Service2 from Service1");

            return(Ok());
        }