//public ComputeNodeType ComputeNodeType //{ // get // { // return ComputeNodeType.MX; // } //} public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendLine("CurrentInstanceId: " + CurrentInstanceId); sb.AppendLine("CurrentInstanceIndex: " + CurrentInstanceIndex); sb.AppendLine("CurrentEndpoint: " + CurrentEndpoint.ToString()); sb.AppendLine("InternalServiceEndPoint: " + InternalServiceEndPoint.ToString()); sb.AppendLine("ExternalServiceEndPoint: " + ExternalServiceEndPoint.ToString()); sb.AppendLine("AllNodeEndpoints:"); foreach (var ep in AllNodeEndpoints) { sb.AppendLine("\t" + ep.ToString()); } return(sb.ToString()); }
//public ComputeNodeType ComputeNodeType //{ // get // { // return ComputeNodeType.MX; // } //} public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendLine("ClusterName: " + AmazonBermudaNodes.Single(abn => abn.IsCurrentInstance).ClusterName); sb.AppendLine("CurrentInstanceId: " + CurrentInstanceId); sb.AppendLine("CurrentInstanceIndex: " + CurrentInstanceIndex); sb.AppendLine("CurrentEndpoint: " + CurrentEndpoint.ToString()); sb.AppendLine("InternalServiceEndPoint: " + InternalServiceEndPoint.ToString()); sb.AppendLine("ExternalServiceEndPoint: " + ExternalServiceEndPoint.ToString()); sb.AppendLine("AllNodeEndpoints:"); foreach (var ep in AllNodeEndpoints) { sb.AppendLine("\t" + ep.ToString()); } return(sb.ToString()); }