Пример #1
0
        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();
        }
Пример #2
0
        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();
        }