Beispiel #1
0
        public OperationResult Work(MultiThreadWorkerParameters parameters)
        {
            if (_workerIsUsed)
            {
                throw new InvalidOperationException("Worker can not be run twice.");
            }

            WorkInternal(parameters);

            _workerIsUsed = true;

            return(GetWorkResult());
        }
Beispiel #2
0
 protected abstract void WorkInternal(MultiThreadWorkerParameters parameters);