public PDFSplitter(MainService parent, BarcodeOptions options, DirectoryData dirdata) { _parent = parent; _barcodeOptions = options; _directoryData = dirdata; _runningState = ServiceState.Ready; _runable = false; }
protected override void OnStart(string[] args) { _barcodeOptions = BarcodeOptions.Load(); //BarcodeSymbology[] supportedSymbologies = BarcodeEngine.GetSupportedSymbologies(); Console.WriteLine(string.Format("{0} Supported symbologies:", _barcodeOptions.ReadOptionsSymbologies.Length)); foreach (BarcodeSymbology symbology in _barcodeOptions.ReadOptionsSymbologies) { Console.WriteLine(string.Format("{0}: {1}", symbology, BarcodeEngine.GetSymbologyFriendlyName(symbology))); } _directorySettings.Load(); DoPDFSplitStart(); ServiceLog.WriteLog("Service started"); }