Beispiel #1
0
        public void Dispose()
        {
            if (_nodeServices != null)
            {
                _nodeServices.Dispose();
                _nodeServices = null;
                // the node services doesn't "WaitForExit". it should though.
                // this should be enough time for the process to fully exit.
                Thread.Sleep(TimeSpan.FromSeconds(.5));
            }

            if (_scriptsDirectory != null)
            {
                _scriptsDirectory.Dispose();
                _scriptsDirectory = null;
            }
        }
Beispiel #2
0
        public void Dispose()
        {
            if (_nodeServices != null)
            {
                _nodeServices.Dispose();
                _nodeServices = null;
                // the node services doesn't "WaitForExit". it should though.
                // this should be enough time for the process to fully exit.
                Thread.Sleep(TimeSpan.FromSeconds(.5));
            }

            if (_scriptsDirectory != null)
            {
                _scriptsDirectory.Dispose();
                _scriptsDirectory = null;
            }
        }
Beispiel #3
0
 public MarkdownCompiler(IPathResolver pathResolver)
 {
     _scriptsDirectory = new TempScriptDirectory();
     _nodeServices = Configuration.CreateNodeServices(NodeHostingModel.Http, _scriptsDirectory.TempDirectory);
 }
Beispiel #4
0
 public MarkdownCompiler(IPathResolver pathResolver)
 {
     _scriptsDirectory = new TempScriptDirectory();
     _nodeServices     = Configuration.CreateNodeServices(NodeHostingModel.Http, _scriptsDirectory.TempDirectory);
 }