示例#1
0
 private string BuildResponse()
 {
     return(ResponseFormat.Replace("<%=status%>", IsHealthy ? UpStatusString : DownStatusString)
            .Replace("<%=host%>", ServerName)
            .Replace("<%=uptime%>", DateTime.UtcNow.Subtract(ServiceStartTime).TotalSeconds.ToString()));
 }