private void InitEngine() { // Create a new Server object Server dtServer = new Server(); // Display the Engine version _dtVersion = string.Format(VersionFmt, dtServer.MajorVersion.ToString(), dtServer.MinorVersion.ToString(), dtServer.Build.ToString()); dtServer.Dispose(); dtServer = null; _factory = new DTFactory(Path.Combine(Application.StartupPath, "Config")); }
protected override void DoRun() { _currentState = State.Running; List <string> files = FileDirLister.GetFiles(_options.InOutOpt.InputOptions); _fileSource = new DTFileSource(files); DTFactory factory = new DTFactory(_options.DTConfigureDirectory); _indexJob = factory.GetCreateIndexJob(_options.InOutOpt.OutputOptions.OutputDirectory, _fileSource); _indexJob.Execute(); _currentState = State.Stopped; }