Exemplo n.º 1
0
        public async Task <MonitoredPageViewModel> GetAsync()
        {
            var model = new MonitoredPageViewModel()
            {
                Version          = TimeController.Version,
                PublicTime       = await GetRemoteTimeInfoAsync(),
                LocalTime        = GetLocalTimeInfo(),
                FunctionTime     = await GetFunctionTimeInfoAsync(),
                LocalEnvironment = new List <KeyValuePair <string, string> >() // GetEnvironment()
            };

            return(model);
        }
Exemplo n.º 2
0
        public async Task <IActionResult> MonitoredPage()
        {
            MonitoredPageViewModel model = await(new TimeController()).GetAsync();

            return(View(model));
        }