public ProposalDto(ElectionMessage.Proposal message) { ServerId = message.ServerId; MasterId = message.MasterId; ServerInternalHttpAddress = message.ServerInternalHttp.Address.ToString(); ServerInternalHttpPort = message.ServerInternalHttp.Port; MasterInternalHttpAddress = message.MasterInternalHttp.Address.ToString(); MasterInternalHttpPort = message.MasterInternalHttp.Port; View = message.View; EpochNumber = message.EpochNumber; EpochPosition = message.EpochPosition; EpochId = message.EpochId; LastCommitPosition = message.LastCommitPosition; WriterCheckpoint = message.WriterCheckpoint; ChaserCheckpoint = message.ChaserCheckpoint; }
public ProposalDto(ElectionMessage.Proposal message) { ServerId = message.ServerId; LeaderId = message.LeaderId; ServerHttpAddress = message.ServerHttpEndPoint.GetHost(); ServerHttpPort = message.ServerHttpEndPoint.GetPort(); LeaderHttpAddress = message.LeaderHttpEndPoint.GetHost(); LeaderHttpPort = message.LeaderHttpEndPoint.GetPort(); View = message.View; EpochNumber = message.EpochNumber; EpochPosition = message.EpochPosition; EpochId = message.EpochId; LastCommitPosition = message.LastCommitPosition; WriterCheckpoint = message.WriterCheckpoint; ChaserCheckpoint = message.ChaserCheckpoint; NodePriority = message.NodePriority; }