コード例 #1
0
 public void Start()
 {
     if (this.currentReplicaState.Leaders.Count == 0)
     {
         throw new InvalidOperationException("You need to setup leaders in the replica's state before starting replicas");
     }
     loopListener.Execute();
 }
コード例 #2
0
 public void Start()
 {
     if (this.currentReplicaState.Leaders.Count == 0)
     {
         throw new InvalidOperationException("You need to setup leaders in the replica's state before starting replicas");
     }
     logger.Info($"{this.currentReplicaState.MessageSender.UniqueId} is starting");
     loopListener.Execute();
 }
コード例 #3
0
 public void Start()
 {
     loopListener.Execute();
 }
コード例 #4
0
ファイル: Acceptor.cs プロジェクト: JulienDollon/CSharpPaxos
 public void Start()
 {
     logger.Info($"{this.currentAcceptorState.MessageSender.UniqueId} is starting");
     loopListener.Execute();
 }
コード例 #5
0
ファイル: Leader.cs プロジェクト: JulienDollon/CSharpPaxos
 public void Start()
 {
     logger.Info($"{this.currentState.MessageSender.UniqueId} is starting");
     solicitateBallot();
     loopListener.Execute();
 }
コード例 #6
0
 public void Start()
 {
     solicitateBallot();
     loopListener.Execute();
 }