Beispiel #1
0
        public async Task <ActionResult> Log(string slug, string id)
        {
            IApplication application = _applicationService.GetApplication(slug);

            if (application == null)
            {
                return(HttpNotFound());
            }

            ICredentials            credentials       = _credentialProvider.GetCredentials();
            RemoteDeploymentManager deploymentManager = application.GetDeploymentManager(credentials);

            IEnumerable <LogEntry> entries = await deploymentManager.GetLogEntriesAsync(id);

            ViewBag.slug    = slug;
            ViewBag.appName = application.Name;
            ViewBag.id      = id;
            return(View(entries));
        }
Beispiel #2
0
        public Task <ActionResult> Log(string slug, string id)
        {
            IApplication application = _applicationService.GetApplication(slug);

            if (application == null)
            {
                return(HttpNotFoundAsync());
            }

            ICredentials            credentials       = _credentialProvider.GetCredentials();
            RemoteDeploymentManager deploymentManager = application.GetDeploymentManager(credentials);

            return(deploymentManager.GetLogEntriesAsync(id).Then(entries =>
            {
                ViewBag.slug = slug;
                ViewBag.appName = application.Name;
                ViewBag.id = id;

                return (ActionResult)View(entries);
            }));
        }