using Codelyzer.Analysis; using CTA.FeatureDetection.Common.Models.Features.Base; namespace CTA.FeatureDetection.AuthType.CompiledFeatures { public class IISConfigFeature : WebConfigFeature { /// /// Determines if IIS server configuration is being used in a given project based on /// Web.config settings. /// /// Qualifications: /// 1. Web.config uses IIS server config: /// /// /// /// /// /// /// /// Source code analysis results /// Whether or not IIS Server configuration is used public override bool IsPresent(AnalyzerResult analyzerResult) { var config = LoadWebConfig(analyzerResult.ProjectResult.ProjectRootPath); return config.ContainsElement(Constants.IISConfigElementPath); } } }