Esempio n. 1
0
 private void RegisterAsLeader()
 {
     Task.Run(() => { _orderEventRepository.UpdateProcessorState(OrderEventProcessor.ProcessorId, OrderEventProcessorState.LEADER); _orderEventRepository.WithdrawElection(OrderEventProcessor.ProcessorId); }).Wait();
 }
Esempio n. 2
0
 private void RegisterAsCandidate()
 {
     Task.Run(() => _orderEventRepository.UpdateProcessorState(OrderEventProcessor.ProcessorId, OrderEventProcessorState.CANDIDATE)).Wait();
 }