示例#1
0
        public UpdateGossipProcessor(IEnumerable <ElectionsInstance> allInstances,
                                     SendOverHttpBlockingProcessor sendOverHttpProcessor,
                                     RandomizedElectionsAndGossipTestCase.CreateUpdatedGossip createUpdatedGossip,
                                     Action <RandTestQueueItem, Message> enqueue)
        {
            _sendOverHttpProcessor = sendOverHttpProcessor;
            _createUpdatedGossip   = createUpdatedGossip;
            _enqueue   = enqueue;
            _instances = allInstances.ToArray();

            _processedItems = new List <RandTestQueueItem>();
            ProcessedItems  = _processedItems;
        }
        public UpdateGossipProcessor(IEnumerable<ElectionsInstance> allInstances,
                                     SendOverHttpBlockingProcessor sendOverHttpProcessor,
                                     RandomizedElectionsAndGossipTestCase.CreateUpdatedGossip createUpdatedGossip,
                                     Action<RandTestQueueItem, Message> enqueue)
        {
            _sendOverHttpProcessor = sendOverHttpProcessor;
            _createUpdatedGossip = createUpdatedGossip;
            _enqueue = enqueue;
            _instances = allInstances.ToArray();

            _processedItems = new List<RandTestQueueItem>();
            ProcessedItems = _processedItems;
        }