public string ToStringImplementationObject(string format = null) { StringBuilder sb = new StringBuilder(); sb.AppendLine("Uri Endpoints:"); foreach (Uri uri in this.EndPoints) { sb.AppendLine($"uri.OriginalString = {uri.OriginalString}"); sb.AppendLine($"uri.AbsoluteUri = {uri.AbsoluteUri}"); sb.AppendLine($"uri.AbsolutePath = {uri.AbsolutePath}"); sb.AppendLine($"uri.Host = {uri.Host}"); sb.AppendLine($"Uri.PathAndQuery = {uri.PathAndQuery}"); } sb.AppendLine("------------------------------------------------------------------------"); sb.AppendLine("------------------------------------------------------------------------"); sb.AppendLine("KeyValuePair<Uri, ClientRequestImplementation<ImplementationRequest>>"); sb.AppendLine($"[Implementation Object] = {RequestImplementationObjects?.GetType().ToString()}"); sb.AppendLine(); foreach ( KeyValuePair <Uri, ClientRequestImplementation <ImplementationRequest> > kvp in this.RequestImplementationObjects ) { Uri uri = kvp.Key; sb.AppendLine(uri.ToString("D")); sb.AppendLine($"uri.OriginalString = {uri.OriginalString}"); sb.AppendLine($"uri.AbsoluteUri = {uri.AbsoluteUri}"); sb.AppendLine($"uri.AbsolutePath = {uri.AbsolutePath}"); sb.AppendLine($"uri.Host = {uri.Host}"); sb.AppendLine($"Uri.PathAndQuery = {uri.PathAndQuery}"); ImplementationRequest request = kvp.Value.ImplementationObject; sb.AppendLine(request.ToString()); } sb.AppendLine("------------------------------------------------------------------------"); sb.AppendLine(); return(sb.ToString()); }