public ActionResult Index()
        {
            string serviceUrlPrefix = CloudConfigurationManager.GetSetting("HostedServiceUrlPrefix");

            ServiceManager manager = new ServiceManager();
            bool appIsOnline = manager.GetHostedServiceStatus(serviceUrlPrefix);
            if (!appIsOnline)
            {
                Response.Close();
            }
            
            return new EmptyResult();
        }
        public ActionResult Index()
        {
            CloudServiceViewModel model = new CloudServiceViewModel()
            {
                HttpHost = Request["HTTP_HOST"],
                ClientIPAddress = Request.UserHostAddress,
                ClientHostName = Request.UserHostName,
                ServerName = Request["SERVER_NAME"],
                CurrentRegion = RoleEnvironment.GetConfigurationSettingValue("HostedServiceRegion"),
                DnsTtl = RoleEnvironment.GetConfigurationSettingValue("DnsTtl")
            };

            ServiceManager manager = new ServiceManager();
            foreach (var service in manager.GetHostedServiceStatus())
            {
                model.HostedServices.Add(service.RowKey, service);
            }

            return this.View(model);
        }