Exemple #1
0
 public override void InstanceCreated(ViewCompiler compiler, ISparkView view)
 {
     if (compiler is PythonViewCompiler && view is IScriptingSparkView)
     {
         PythonEngineManager.InstanceCreated(
             (PythonViewCompiler) compiler,
             (IScriptingSparkView) view);
     }
     else
     {
         base.InstanceCreated(compiler, view);
     }
 }
 private static void DoCompileView(ViewCompiler compiler, IList<Chunk> chunks)
 {
     compiler.CompileView(new[] { chunks }, new[] { chunks });
 }
 public virtual void InstanceReleased(ViewCompiler compiler, ISparkView view)
 {
 }
 public override void InstanceReleased(ViewCompiler compiler, ISparkView view)
 {
     if (compiler is RubyViewCompiler && view is IScriptingSparkView)
     {
         RubyEngineManager.InstanceReleased(
             (RubyViewCompiler)compiler,
             (IScriptingSparkView)view);
     }
     else
     {
         base.InstanceCreated(compiler, view);
     }
 }
 public virtual void InstanceCreated(ViewCompiler compiler, ISparkView view)
 {
 }