コード例 #1
0
        //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());
        }
コード例 #2
0
        //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());
        }