private void SetupNesper() { _logHelper.StartTimerFor("Nesper setup"); var alertBuffer = new BlockingCollection <ActivityAlert>(); _nesper = new NesperAdapter(alertBuffer); _nesper.Initialize(); _alertProducerProxy = new AlertProducerProxy(); _alertConsumer = new AlertDispatcher(alertBuffer, _alertProducerProxy); _alertConsumer.StartThread(); string cfgName = "Release"; #if DEBUG cfgName = "Debug"; #endif string versionNesper = Version.GetAssemblyVersionFor <EPStatement>(); _log.Debug($"Nesper v.{versionNesper}"); _log.Debug($"Configuration: {cfgName}"); _logHelper.StopAndLogTime(); }