using System; using System.Threading; using System.Collections.Generic; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace LeanEngineApp.Controllers { [ApiController] [Route("__engine/{1,1.1}/ping")] public class PingController : ControllerBase { private readonly ILogger logger; public PingController(ILogger logger) { this.logger = logger; } [HttpGet] public Dictionary Get() { Console.WriteLine("ping get to console"); logger.LogDebug("ping get to logger"); return new Dictionary { { "runtime", "dotnet" }, { "version", "1.0.0" } }; } } }