public PrepareOkDto(ElectionMessage.PrepareOk message) { ServerId = message.ServerId; ServerInternalHttpAddress = message.ServerInternalHttp.Address.ToString(); ServerInternalHttpPort = message.ServerInternalHttp.Port; View = message.View; EpochNumber = message.EpochNumber; EpochPosition = message.EpochPosition; EpochId = message.EpochId; LastCommitPosition = message.LastCommitPosition; WriterCheckpoint = message.WriterCheckpoint; ChaserCheckpoint = message.ChaserCheckpoint; NodePriority = message.NodePriority; }
public PrepareOkDto(ElectionMessage.PrepareOk message) { ServerId = message.ServerId; ServerHttpAddress = message.ServerHttpEndPoint.GetHost(); ServerHttpPort = message.ServerHttpEndPoint.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; }