public OpenNIDataSourceFactory(string configFile) { if (!File.Exists(configFile)) { throw new FileNotFoundException("Config file is missing: " + configFile); } ScriptNode node = null; this.context = Context.CreateFromXmlFile(configFile, out node); this.runner = new OpenNIRunner(this.context); this.runner.Start(); }
public OpenNIDataSourceFactory(string configFile) { if (!File.Exists(configFile)) { throw new FileNotFoundException("Config file is missing: " + configFile); } ScriptNode node = null; this.context = Context.CreateFromXmlFile(configFile, out node); this.runner = new OpenNIRunner(this.context); this.runner.Start(); }