public void SetUp() { _container = SupportContainer.Reset(); MetricReportingPath.IsMetricsEnabled = false; _listenerOne = new SupportUpdateListener(); _listenerTwo = new SupportUpdateListener(); EPStatementListenerSet listenerSet = new EPStatementListenerSet(); listenerSet.Events.Add(_listenerOne.Update); listenerSet.Events.Add(_listenerTwo.Update); _dispatchService = new DispatchServiceImpl(_container.Resolve <IThreadLocalManager>()); _statementResultService = new StatementResultServiceImpl( "name", null, null, new ThreadingServiceImpl(new ConfigurationEngineDefaults.ThreadingConfig()), _container.Resolve <IThreadLocalManager>()); _statementResultService.SetUpdateListeners(listenerSet, false); _statementResultService.SetSelectClause( new Type[1], new string[1], false, new ExprEvaluator[1], new SupportExprEvaluatorContext(_container, null)); _statementResultService.SetContext(new SupportEPStatementSPI(), null, false, false, false, false, null); _updateDispatchView = new UpdateDispatchViewBlockingWait( _statementResultService, _dispatchService, 1000, _container.Resolve <IThreadLocalManager>()); }
/// <summary>Ctor. </summary> /// <param name="view">is the blocking dispatch view through which to execute a dispatch</param> /// <param name="earlier">is the older future</param> /// <param name="msecTimeout">is the timeout period to wait for listeners to complete a prior dispatch</param> public UpdateDispatchFutureWait(UpdateDispatchViewBlockingWait view, UpdateDispatchFutureWait earlier, long msecTimeout) { _view = view; _earlier = earlier; _msecTimeout = msecTimeout; }