Ejemplo n.º 1
0
 public Helper(TimeGapsDetector owner)
 {
     this.owner  = owner;
     this.invoke = owner.modelSynchronizationContext;
     this.trace  = owner.traceSourceFactory.CreateTraceSource("GapsDetector",
                                                              string.Format("{0}.h{1}", owner.trace.Prefix, ++owner.lastHelperId));
     this.source = owner.source;
 }
Ejemplo n.º 2
0
 public Helper(TimeGapsDetector owner)
 {
     this.owner  = owner;
     this.invoke = owner.syncInvoke;
     this.trace  = new LJTraceSource("GapsDetector",
                                     string.Format("{0}.h{1}", owner.trace.Prefix, ++owner.lastHelperId));
     this.source = owner.source;
 }
Ejemplo n.º 3
0
        public TimeGapsDetector(
            LJTraceSource tracer,
            ISynchronizationContext modelSynchronizationContext,
            ITimeGapsSource source,
            ITraceSourceFactory traceSourceFactory
            )
        {
            this.traceSourceFactory = traceSourceFactory;
            this.trace = traceSourceFactory.CreateTraceSource("GapsDetector", tracer.Prefix + ".gaps");
            using (trace.NewFrame)
            {
                this.modelSynchronizationContext = modelSynchronizationContext;
                this.source = source;

                trace.Info("starting worker thread");
                thread = Task.Run((Func <Task>)ThreadProc);
            }
        }
Ejemplo n.º 4
0
        public TimeGapsDetector(LJTraceSource tracer, IInvokeSynchronization modelThreadInvoke, ITimeGapsSource source)
        {
            this.trace = new LJTraceSource("GapsDetector", tracer.Prefix + ".gaps");
            using (trace.NewFrame)
            {
                this.syncInvoke = modelThreadInvoke;
                this.source     = source;

                trace.Info("starting worker thread");
                thread = Task.Run((Func <Task>)ThreadProc);
            }
        }