コード例 #1
0
        public bool AddSiteBinding(string name, KuduBinding binding)
        {
            var application = GetApplication(name);

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

            return(_siteManager.AddSiteBinding(name, binding));
        }
コード例 #2
0
        public bool RemoveServiceSiteBinding(string name, KuduBinding siteBinding)
        {
            var application = GetApplication(name);

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

            return(_siteManager.RemoveSiteBinding(name, siteBinding, SiteType.Service));
        }
コード例 #3
0
ファイル: ApplicationController.cs プロジェクト: jeme/kudu
        public async Task <ActionResult> RemoveServiceSiteBinding(string slug, string siteBinding)
        {
            IApplication application = _applicationService.GetApplication(slug);

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

            _applicationService.RemoveServiceSiteBinding(slug, KuduBinding.Parse(siteBinding));

            return(await GetApplicationView("settings", "Details", slug));
        }