Beispiel #1
0
 public void InitAfterDeserialization(mko.Log.LogServer log, TWorker worker)
 {
     // Verweisen auf die Objekte aus dem Kontext
     this.log    = log;
     this.worker = worker;
     asyncDoIt   = new DGworkerdoIt(worker.doIt);
 }
        public void InitAfterDeserialization(mko.Log.LogServer log, TWorker[] worker)
        {
            // Verweisen auf die Objekte aus dem Kontext
            this.log = log;
            Debug.Assert(worker.Length > 0);
            oneWorker = worker[0];

            foreach (var w in worker)
            {
                workerIdle.Enqueue(w);
            }
        }
Beispiel #3
0
        // Konstruktoren
        public BatchProcessor(mko.Log.LogServer log, TWorker worker)
        {
            this.log    = log;
            this.worker = worker;

            // Delegate für Asynchronen Start von DoIt initialisieren
            asyncDoIt = new DGworkerdoIt(this.worker.doIt);

            JobFertigEvent = new System.Threading.AutoResetEvent(false);

            ts = new TraceSwitch("TraceBatchProcessor", "Diagnoseprotokolle des Batchprocessors");
        }
        // Konstruktoren
        public BatchProcessorParallel(mko.Log.LogServer log, TWorker[] worker)
        {
            this.log = log;
            Debug.Assert(worker.Length > 0);
            oneWorker = worker[0];

            foreach (var w in worker)
            {
                workerIdle.Enqueue(w);
            }

            JobFertigEvent = new System.Threading.AutoResetEvent(false);

            ts = new TraceSwitch("TraceBatchProcessor", "Diagnoseprotokolle des Batchprocessors");
        }