public PrepareDto(ElectionMessage.Prepare message)
            {
                ServerId = message.ServerId;
                ServerInternalHttpAddress = message.ServerInternalHttp.Address.ToString();
                ServerInternalHttpPort = message.ServerInternalHttp.Port;

                View = message.View;
            }
            public ViewChangeProofDto(ElectionMessage.ViewChangeProof message)
            {
                ServerId = message.ServerId;
                ServerInternalHttpAddress = message.ServerInternalHttp.Address.ToString();
                ServerInternalHttpPort = message.ServerInternalHttp.Port;

                InstalledView = message.InstalledView;
            }
            public ViewChangeDto(ElectionMessage.ViewChange message)
            {
                ServerId = message.ServerId;
                ServerInternalHttpAddress = message.ServerInternalHttp.Address.ToString();
                ServerInternalHttpPort = message.ServerInternalHttp.Port;

                AttemptedView = message.AttemptedView;
            }
            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 AcceptDto(ElectionMessage.Accept 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;
            }
            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;
            }