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; } }
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; } }
public MarkdownCompiler(IPathResolver pathResolver) { _scriptsDirectory = new TempScriptDirectory(); _nodeServices = Configuration.CreateNodeServices(NodeHostingModel.Http, _scriptsDirectory.TempDirectory); }
public MarkdownCompiler(IPathResolver pathResolver) { _scriptsDirectory = new TempScriptDirectory(); _nodeServices = Configuration.CreateNodeServices(NodeHostingModel.Http, _scriptsDirectory.TempDirectory); }