Пример #1
0
 public LeaderIsResigningOkDto(ElectionMessage.LeaderIsResigningOk message)
 {
     ServerId          = message.ServerId;
     ServerHttpAddress = message.ServerHttpEndPoint.GetHost();
     ServerHttpPort    = message.ServerHttpEndPoint.GetPort();
     LeaderId          = message.LeaderId;
     LeaderHttpAddress = message.LeaderHttpEndPoint.GetHost();
     LeaderHttpPort    = message.LeaderHttpEndPoint.GetPort();
 }
Пример #2
0
 public LeaderIsResigningOkDto(ElectionMessage.LeaderIsResigningOk message)
 {
     ServerId = message.ServerId;
     ServerInternalHttpAddress = message.ServerInternalHttp.Address.ToString();
     ServerInternalHttpPort    = message.ServerInternalHttp.Port;
     LeaderId = message.LeaderId;
     LeaderInternalHttpAddress = message.LeaderInternalHttp.Address.ToString();
     LeaderInternalHttpPort    = message.LeaderInternalHttp.Port;
 }