XmlRpc_Wrapper.XmlRpcServer.enableIntrospection C# (CSharp) Method

enableIntrospection() public method

public enableIntrospection ( bool enabled ) : void
enabled bool
return void
        public void enableIntrospection(bool enabled)
        {
            if (_introspectionEnabled == enabled)
                return;

            _introspectionEnabled = enabled;

            if (enabled)
            {
                if (_listMethods == null)
                {
                    _listMethods = new ListMethods(this);
                    _methodHelp = new MethodHelp(this);
                }
                else
                {
                    AddMethod(_listMethods);
                    AddMethod(_methodHelp);
                }
            }
            else
            {
                RemoveMethod(LIST_METHODS);
                RemoveMethod(METHOD_HELP);
            }
        }