コード例 #1
0
ファイル: AppendEntriesRequest.cs プロジェクト: Noplog/Noplog
 public AppendEntriesRequest(long term, string leaderId, EntryId previousEntryId, object[] entries,
     long leaderCommit)
 {
     Term = term;
     LeaderId = leaderId;
     PreviousEntryId = previousEntryId;
     Entries = entries;
     LeaderCommit = leaderCommit;
 }
コード例 #2
0
ファイル: RequestVoteRequest.cs プロジェクト: Noplog/Noplog
 public RequestVoteRequest(long term, string candidateId, EntryId lastEntryId)
 {
     Term = term;
     CandidateId = candidateId;
     LastEntryId = lastEntryId;
 }