Example #1
0
        public string Hello(string name)
        {
            _logger.LogError("error in hello");
            string greeting = _helloService.Hello(name);

            return(greeting.ToUpper());
        }
 public string Greet(string name)
 {
     _logger.LogTrace("Greet invoked");
     _logger.LogError("Sample for an error");
     return(_greetingService.Hello(name));
 }
 public string Greet(string name) => _greetingService.Hello(name);
 public string Hello(string name)
 {
     _logger.LogTrace("Hello invoked with {0}", name);
     return(_greetingService.Hello(name));
 }
        public string Hello(string name)
        {
            string greeting = _helloService.Hello(name);

            return(greeting.ToUpper());
        }
Example #6
0
        public IActionResult Run([TimerTrigger("*/15 * * * * *")] TimerInfo myTimer)
        {
            _logger.LogWarning(_greetingService.Hello("ivan"));

            return(new ObjectResult(new { a = "hi" }));
        }
Example #7
0
        public void Index()
        {
            string greeting = _greetingService.Hello("Stephanie");

            Console.WriteLine(greeting);
        }