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; }
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; }
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); } }
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); } }