Example #1
0
        private Task <Message> HandleIntrospect(object o, Message methodCall, IProxyFactory factory)
        {
            IntrospectionWriter writer = new IntrospectionWriter();

            writer.WriteDocType();
            writer.WriteNodeStart(_objectPath.Value);
            writer.WriteLiteral(_typeIntrospection);
            foreach (var child in _connection.GetChildNames(_objectPath))
            {
                writer.WriteChildNode(child);
            }
            writer.WriteNodeEnd();

            var xml      = writer.ToString();
            var response = MessageHelper.ConstructReply(methodCall, xml);

            return(Task.FromResult(response));
        }