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()); }
public IActionResult Run([TimerTrigger("*/15 * * * * *")] TimerInfo myTimer) { _logger.LogWarning(_greetingService.Hello("ivan")); return(new ObjectResult(new { a = "hi" })); }
public void Index() { string greeting = _greetingService.Hello("Stephanie"); Console.WriteLine(greeting); }