protected override FrameworkDependencyStatus GenerateConfiguration() { object obj = null; object obj1 = null; base.Context.Items.TryGetProperty <object>("MVC_IsODataAssemblyReferenced", out obj); base.Context.Items.TryGetProperty <object>("MVC_IsWebApiAssemblyReferenced", out obj1); bool flag = !(bool)obj; bool flag1 = !(bool)obj1; bool flag2 = base.TryCreateGlobalAsax(); if (flag2 && flag) { return(FrameworkDependencyStatus.FromReadme(ODataReadMe.CreateReadMeText())); } if (!flag2) { string empty = string.Empty; if (flag) { empty = string.Concat(empty, ODataReadMe.CreateReadMeText()); } if (flag1) { WebApiReadMe webApiReadMe = new WebApiReadMe(ProjectExtensions.GetCodeLanguage(base.Context.ActiveProject), base.Context.ActiveProject.Name, base.AppStartFileNames); empty = string.Concat(empty, webApiReadMe.CreateReadMeText()); } if (!string.IsNullOrEmpty(empty)) { return(FrameworkDependencyStatus.FromReadme(empty)); } } return(FrameworkDependencyStatus.InstallSuccessful); }
protected override FrameworkDependencyStatus GenerateConfiguration() { object isODataAssemblyReferenced; Context.Items.TryGetProperty(ContextKeys.IsODataAssemblyReferencedKey, out isODataAssemblyReferenced); object isWebApiAssemblyReferenced; Context.Items.TryGetProperty(ContextKeys.IsWebApiAssemblyReferencedKey, out isWebApiAssemblyReferenced); bool showODataReadme = !(bool)isODataAssemblyReferenced; bool showWebApiReadme = !(bool)isWebApiAssemblyReferenced; bool isNewGlobalAsaxCreated = TryCreateGlobalAsax(); if (isNewGlobalAsaxCreated && showODataReadme) { return(FrameworkDependencyStatus.FromReadme(ODataReadMe.CreateReadMeText())); } else if (!isNewGlobalAsaxCreated) { string readmeText = String.Empty; if (showODataReadme) { readmeText += ODataReadMe.CreateReadMeText(); } if (showWebApiReadme) { // WebApiReadMe readMeGenerator = new WebApiReadMe(Context.ActiveProject.GetCodeLanguage(), Context.ActiveProject.Name, AppStartFileNames); // readmeText += readMeGenerator.CreateReadMeText(); } if (!String.IsNullOrEmpty(readmeText)) { return(FrameworkDependencyStatus.FromReadme(readmeText)); } } return(FrameworkDependencyStatus.InstallSuccessful); }
protected override FrameworkDependencyStatus GenerateConfiguration() { return(FrameworkDependencyStatus.FromReadme(ODataReadMe.CreateReadMeText())); }