private static void InitializeNesper() { nesperConf = new com.espertech.esper.client.Configuration(); nesperConf.AddEventType(typeof(Feed)); epService = EPServiceProviderManager.GetDefaultProvider(nesperConf); _runtime = epService.EPRuntime; mHandler = new MessageHandler(); mHandler.UpdatePrediction += Predict; }
private static void InitializeNesper() { nesperConf = new com.espertech.esper.client.Configuration(); nesperConf.AddEventType(typeof(Feed)); epService = EPServiceProviderManager.GetDefaultProvider(nesperConf); _runtime = epService.EPRuntime; mHandler = new MessageHandler(); mHandler.UpdatePrediction += Predict; }
public void Init(int sleepListenerMillis) { Configuration configuration = new Configuration(); configuration.EngineDefaults.EventMetaConfig.ClassPropertyResolutionStyle = PropertyResolutionStyle.CASE_INSENSITIVE; configuration.AddEventType("Market", typeof(MarketData)); EPServiceProvider epService = EPServiceProviderManager.GetProvider("benchmark", configuration); epAdministrator = epService.EPAdministrator; epRuntime = epService.EPRuntime; sleepMillis = sleepListenerMillis; }