예제 #1
0
        public async Task <ActionResult <GetStatusResponse> > GetTheStatus()
        {
            // WTCYWYH - Write the Code You Wish You Had.
            GetStatusResponse response = await _serverStatus.GetCurrentStatus();


            return(Ok(response));
        }
예제 #2
0
        public ActionResult GetTheStatus()
        {
            var response = new GetStatusResponse
            {
                Message         = "Everything is golden! " + config.GetValue <string>("appName"),
                CheckedBy       = "Joe Schmidt",
                WhenLastChecked = DateTime.Now
            };

            return(Ok(response));
        }
예제 #3
0
        public ActionResult GetTheStatus()
        {
            var response = new GetStatusResponse
            {
                Message         = "Everything is golden! " + config.GetValue <string>("appName"),
                CheckedBy       = "Kurt Risley",
                WhenLastChecked = systemTime.GetCurrent()
            };

            return(Ok(response));
        }
예제 #4
0
        public ActionResult GetTheStatus()
        {
            var response = new GetStatusResponse
            {
                Message         = "Everything is golden!",
                CheckedBy       = "Joe",
                WhenLastChecked = systemTime.GetCurrent()
            };

            return(Ok(response));
        }
예제 #5
0
        public ActionResult GetTheStatus()
        {
            var response = new GetStatusResponse
            {
                Message         = "Everything is golden!",// + config.GetValue<string>("appName"),
                CheckedBy       = "Joe Schmidtly",
                WhenLastChecked = systemTime.GetCurrent()
            };

            return(Ok(response));
            // one last thing!
        }
예제 #6
0
        public ActionResult GetTheStatus()
        {
            var response = new GetStatusResponse
            {
                Message         = "Everything is golden! " + config.GetValue <string>("appName"),
                CheckedBy       = "The H I V E",
                WhenLastChecked = systemTime.GetCurrent() //see startup
            };

            return(Ok(response));
            //one last thing
        }
        public ActionResult GetTheStatus()
        {
            var response = new GetStatusResponse
            {
                Message         = "Everything is golden!",
                CheckedBy       = "Joe Schmidt",
                WhenLastChecked = systemTime.GetCurrent() // Impure. Unclean! DateTime.Now
            };

            return(Ok(response));
            // one last thing!
        }