static RESTProcessHandler() { _LingvisticsServer = new Lazy <ILingvisticsServer>(() => LingvisticsServer.Create(Config.LINGUISTICS_SERVER_URL, Config.LINGUISTICS_SERVER_TIMEOUT_IN_SECONDS), true); if (!Config.LINGUISTICS_SERVER_EXE_FILE_LOCATION.IsNullOrWhiteSpace()) { Task.Factory.StartNew(StartAndWatchLinguisticsServer, TaskCreationOptions.LongRunning); } }
static LinguisticsDecorator() { _LingvisticServer = LingvisticsServer.Create(Config.LinguisticsUrl, 10); }