コード例 #1
0
ファイル: ElectionMessage.cs プロジェクト: tubo70/EventStore
 public Proposal(ElectionMessageDto.ProposalDto dto)
 {
     ServerId           = dto.ServerId;
     ServerInternalHttp = new IPEndPoint(IPAddress.Parse(dto.ServerInternalHttpAddress), dto.ServerInternalHttpPort);
     MasterId           = dto.MasterId;
     MasterInternalHttp = new IPEndPoint(IPAddress.Parse(dto.MasterInternalHttpAddress), dto.MasterInternalHttpPort);
     View               = dto.View;
     EpochNumber        = dto.EpochNumber;
     EpochPosition      = dto.EpochPosition;
     EpochId            = dto.EpochId;
     LastCommitPosition = dto.LastCommitPosition;
     WriterCheckpoint   = dto.WriterCheckpoint;
     ChaserCheckpoint   = dto.ChaserCheckpoint;
 }
コード例 #2
0
 public Proposal(ElectionMessageDto.ProposalDto dto)
 {
     ServerId           = dto.ServerId;
     ServerHttpEndPoint = new IPEndPoint(IPAddress.Parse(dto.ServerHttpAddress),
                                         dto.ServerHttpPort);
     LeaderId           = dto.LeaderId;
     LeaderHttpEndPoint = new IPEndPoint(IPAddress.Parse(dto.LeaderHttpAddress),
                                         dto.LeaderHttpPort);
     View               = dto.View;
     EpochNumber        = dto.EpochNumber;
     EpochPosition      = dto.EpochPosition;
     EpochId            = dto.EpochId;
     LastCommitPosition = dto.LastCommitPosition;
     WriterCheckpoint   = dto.WriterCheckpoint;
     ChaserCheckpoint   = dto.ChaserCheckpoint;
     NodePriority       = dto.NodePriority;
 }