Пример #1
0
        private bool TryGetNext(out VerificationEvent evnt)
        {
            switch (_role)
            {
            case WorkerRole.Writer:
                return(_coordinator.TryGetEventToWrite(out evnt));

            case WorkerRole.Verifier:
                return(_coordinator.TryGetEventToVerify(out evnt));

            default:
                throw new ArgumentOutOfRangeException();
            }
        }