示例#1
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    static public void DBList(int start = 0, int end = int.MaxValue, HTTPReqDelegate handler = null)
    {
        if (handler != null)
        {
            HTTPReq query = new HTTPReq(ApplicationMain.instance.options.DBInfos.url + "/item_list.php", HTTP_METHOD.GET);

            query.SubmitAsync(handler);
        }
    }
示例#2
0
    public void            Async_DBPull(HTTPReqDelegate onCompletion)
    {
        HTTPReq req = MakeQuery_DBPull();   if (req != null)

        {
            req.SubmitAsync(onCompletion);
        }
        else
        {
            if (onCompletion != null)
            {
                onCompletion.Invoke(null);
            }
        }
    }
示例#3
0
    //****************************************************************************************************
    //
    //****************************************************************************************************

    public bool SubmitAsync(HTTPReqDelegate handler = null)
    {
        if (node.List != null)
        {
            return(false);
        }

        if (HTTPReqs.Instance != null)
        {
            onCompletion = handler;

            return(HTTPReqs.Instance.Queue(this));
        }

        return(false);
    }