Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
            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('}');
                }
            }
Exemplo n.º 3
0
 public static string ToString(DefaultRootHandlerResponse value)
 {
     s_ensure_string_builder();
     ToString(value, s_stringBuilder);
     return(s_stringBuilder.ToString());
 }