public void ObservesAllEvents() { var source = LoadEventSource(); var parser = new IISLogTraceEventParser(source); var observable = parser.Observe(IISLogTraceEventParser.ProviderName, null); var counter = new CountingProcessor(); var sourceProc = new TraceSourceProcessor(counter); sourceProc.Start(observable); source.Process(); source.StopProcessing(); sourceProc.Stop().Wait(); Assert.AreEqual(9, counter.GetCount()); Assert.IsTrue(counter.FlushCalled); Assert.IsTrue(counter.DisposeCalled); }
public void ObservesAllEvents() { var source = LoadEventSource(); var parser = new IISLogTraceEventParser(source); var observable = parser.Observe(IISLogTraceEventParser.ProviderName, null); var counter = new CountingProcessor(); var sourceProc = new TraceSourceProcessor(counter); sourceProc.Start(observable); source.Process(); source.StopProcessing(); sourceProc.Stop().Wait(); Assert.AreEqual(9, counter.GetCount()); Assert.IsTrue(counter.FlushCalled); Assert.IsTrue(counter.DisposeCalled); }
public SignalRSampleController(CountingProcessor countProcessor, CheckProcessor checkProcessor) { _countingProcessor = countProcessor; _checkProcessor = checkProcessor; }