Exemplo n.º 1
0
 public SimpleBaseClassDslCompiler(ISimpleScriptStorage storage, Type actualBaseType) : this(storage)
 {
     if (!typeof(T).IsAssignableFrom(actualBaseType))
     {
         throw new Exception("actualBaseType does not inherit from T");
     }
     _actualBaseType = actualBaseType;
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="storage"></param>
 public SimpleBaseClassDslCompiler(ISimpleScriptStorage storage)
 {
     _storage = storage;
     _storage.DetectModification(urls => this.ReportScriptsModified(urls));
     Namespaces = new List <string>(new string[] {
         "System",
         "System.Text"
     });
     WhitespaceAgnostic = false;
     DSLMethodName      = "Prepare";
 }