private static DefaultRootHandlerResponse GenerateDefaultHttpHandlerResponseObject(string url_root, IEnumerable <string> availableEndpointNames, Type serverType) { DefaultRootHandlerResponse response = new DefaultRootHandlerResponse { endpoints = new List <HttpEndpointDescriptor>() }; foreach (var endpoint in availableEndpointNames) { response.endpoints.Add(GetHttpEndpointDescriptor(serverType, url_root, endpoint)); } return(response); }
internal static void ToString(DefaultRootHandlerResponse value, StringBuilder str_builder) { { str_builder.Append('{'); { if (value.endpoints != null) { str_builder.Append("\"endpoints\":"); ToString(value.endpoints, str_builder); } } str_builder.Append('}'); } }
public static string ToString(DefaultRootHandlerResponse value) { s_ensure_string_builder(); ToString(value, s_stringBuilder); return(s_stringBuilder.ToString()); }