internal CommandsDispatcher(ChannelMultiplexer mx, TraceCollector traceCollector,
                             TransactionManager transactionManager)
 {
     _mx                 = mx;
     _traceCollector     = traceCollector;
     _transactionManager = transactionManager;
 }
Пример #2
0
 public Contains(ITestDataSource source, TraceCollector traceCollector, Type channelType)
 {
     _source = source;
     if (traceCollector != null)
     {
         _promised = traceCollector.PromiseTestQuery <T>(channelType);
     }
 }
Пример #3
0
 /// <summary>
 /// Begins trace collection
 /// </summary>
 public void BeginTrace(bool lightMode = false, bool profiling = true)
 {
     if (_tc == null)
     {
         _tc = new TraceCollector(lightMode, profiling);
         _pipeline.TraceCollector = _tc;
         _aux.TraceCollector      = _tc;
     }
 }
Пример #4
0
        /// <summary>
        /// Finishes trace collection
        /// </summary>
        /// <returns></returns>
        public Trace EndTrace()
        {
            if (_tc == null)
            {
                throw new TectureException(".EndTrace is called, but trace has not been collected");
            }

            var tc = _tc;

            _tc = null;
            return(tc.Finish());
        }
Пример #5
0
 /// <summary>
 /// Begins trace collection
 /// </summary>
 public void BeginTrace()
 {
     _tc = new TraceCollector();
     _pipeline.TraceCollector = _tc;
     _aux.TraceCollector      = _tc;
 }
Пример #6
0
 public LightDemands(TraceCollector traceCollector, Type channelType)
 {
     _promised = traceCollector.PromiseQuery <T>(channelType);
 }
 internal CommandsDispatcher(ChannelMultiplexer mx, TraceCollector tc)
 {
     _mx = mx;
     _tc = tc;
 }