예제 #1
0
파일: DotConfig.cs 프로젝트: lcksy/Dot
 static DotConfig()
 {
     Default                         = new DotConfig();
     Default.EngineType              = "Dot.Engine.DefaultEngine, Dot";
     Default.AssemblySkipPattern     = "^System|^mscorlib|^Microsoft|^AjaxControlToolkit|^Antlr3|^Autofac|^AutoMapper|^Castle|^ComponentArt|^CppCodeProvider|^DotNetOpenAuth|^EntityFramework|^EPPlus|^FluentValidation|^ImageResizer|^itextsharp|^log4net|^MaxMind|^MbUnit|^MiniProfiler|^Mono.Math|^MvcContrib|^Newtonsoft|^NHibernate|^nunit|^Org.Mentalis|^PerlRegex|^QuickGraph|^Recaptcha|^Remotion|^RestSharp|^Rhino|^Telerik|^Iesi|^TestDriven|^TestFu|^UserAgentStringLibrary|^VJSharpCodeProvider|^WebActivator|^WebDev|^WebGrease";
     Default.AssemblyRestrictPattern = "Dot.*";
     Default.IsWebApplication        = true;
 }
예제 #2
0
파일: DotConfig.cs 프로젝트: lcksy/Dot
        public object Create(object parent, object configContext, XmlNode section)
        {
            var config = new DotConfig();

            config.EngineType              = section.GetNode("Engine").GetAttributeValue("Type");
            config.AssemblySkipPattern     = section.GetNode("AssemblySkipPattern").GetAttributeValue("Value");
            config.AssemblyRestrictPattern = section.GetNode("AssemblyRestrictPattern").GetAttributeValue("Value");
            config.IsWebApplication        = Convert.ToBoolean(section.GetNode("IsWebApplication").GetAttributeValue("Value"));

            return(config);
        }