public static string InferAppPoolName(string formatString, string siteName, SiteAppPoolMode NHRT) { if (String.IsNullOrEmpty(formatString)) { throw new ArgumentNullException("formatString"); } // NHRT |= SiteAppPoolMode.Dedicated; // formatString = formatString.Replace("#SITE-NAME#", siteName); // foreach (var fwVersionKey in MMD.Keys) { if ((NHRT & fwVersionKey) == fwVersionKey) { formatString = formatString.Replace("#IIS6-ASPNET-VERSION#", MMD[fwVersionKey][IIS6]); formatString = formatString.Replace("#IIS7-ASPNET-VERSION#", MMD[fwVersionKey][IIS7]); // break; } } // SiteAppPoolMode pipeline = NHRT & (SiteAppPoolMode.Classic | SiteAppPoolMode.Integrated); formatString = formatString.Replace("#PIPELINE-MODE#", pipeline.ToString()); // return(formatString.Trim()); }
public static string WhatFrameworkVersionIs(SiteAppPoolMode value) { SiteAppPoolMode dotNetVersion = value & (SiteAppPoolMode.dotNetFramework1 | SiteAppPoolMode.dotNetFramework2 | SiteAppPoolMode.dotNetFramework4); // return(String.Format("v{0}", MMD[dotNetVersion][IIS7])); }
// public ManagedPipelineMode runtime_pipeline(SiteAppPoolMode m) { return (pipeline(m) == SiteAppPoolMode.Classic) ? ManagedPipelineMode.Classic : ManagedPipelineMode.Integrated; }
// public string aspnet_runtime(SiteAppPoolMode m) { return WebAppPool.AspNetVersions[dotNetVersion(m)]; }
// public SiteAppPoolMode isolation(SiteAppPoolMode m) { return m & (SiteAppPoolMode.Shared | SiteAppPoolMode.Dedicated); }
// public SiteAppPoolMode pipeline(SiteAppPoolMode m) { return m & (SiteAppPoolMode.Classic | SiteAppPoolMode.Integrated); }
// public SiteAppPoolMode dotNetVersion(SiteAppPoolMode m) { return m & (SiteAppPoolMode.dotNetFramework1 | SiteAppPoolMode.dotNetFramework2 | SiteAppPoolMode.dotNetFramework4); }
public static string WhatFrameworkVersionIs(SiteAppPoolMode value) { SiteAppPoolMode dotNetVersion = value & (SiteAppPoolMode.dotNetFramework1 | SiteAppPoolMode.dotNetFramework2 | SiteAppPoolMode.dotNetFramework4); // return String.Format("v{0}", MMD[dotNetVersion][IIS7]); }
public static string InferAppPoolName(string formatString, string siteName, SiteAppPoolMode NHRT) { if (String.IsNullOrEmpty(formatString)) throw new ArgumentNullException("formatString"); // NHRT |= SiteAppPoolMode.Dedicated; // formatString = formatString.Replace("#SITE-NAME#", siteName); // foreach (var fwVersionKey in MMD.Keys) { if ((NHRT & fwVersionKey) == fwVersionKey) { formatString = formatString.Replace("#IIS6-ASPNET-VERSION#", MMD[fwVersionKey][IIS6]); formatString = formatString.Replace("#IIS7-ASPNET-VERSION#", MMD[fwVersionKey][IIS7]); // break; } } // SiteAppPoolMode pipeline = NHRT & (SiteAppPoolMode.Classic | SiteAppPoolMode.Integrated); formatString = formatString.Replace("#PIPELINE-MODE#", pipeline.ToString()); // return formatString.Trim(); }