Example #1
0
 /// <summary>
 /// 引擎配置
 /// </summary>
 /// <param name="conf">配置内容</param>
 /// <param name="scope">初始化全局数据</param>
 public static void Configure(ConfigBase conf, VariableScope scope)
 {
     if (conf == null)
     {
         throw new ArgumentNullException("\"conf\" cannot be null.");
     }
     Configure(conf.ToDictionary(),
         conf.ResourceDirectories,
         conf.TagParsers, scope);
 }
Example #2
0
 /// <summary>
 /// 引擎配置
 /// </summary>
 /// <param name="conf">配置内容</param>
 public static void Configure(ConfigBase conf)
 {
     Configure(conf, null);
 }