Beispiel #1
0
        /// <summary>
        /// 增加 Web 请求任务。
        /// </summary>
        /// <param name="webRequestUri">Web 请求地址。</param>
        /// <param name="postData">要发送的数据流。</param>
        /// <param name="wwwForm">WWW 表单。</param>
        /// <param name="priority">Web 请求任务的优先级。</param>
        /// <param name="userData">用户自定义数据。</param>
        /// <returns>新增 Web 请求任务的序列编号。</returns>
        private int AddWebRequest(string webRequestUri, byte[] postData, WWWForm wwwForm, int priority, object userData)
        {
            WWWFormInfo wwwFormInfo = ReferencePool.Acquire <WWWFormInfo>();

            wwwFormInfo.Initialize(wwwForm, userData);
            return(m_WebRequestManager.AddWebRequest(webRequestUri, postData, priority, wwwFormInfo));
        }
Beispiel #2
0
 /// <summary>
 /// 增加 Web 请求任务。
 /// </summary>
 /// <param name="webRequestUri">Web 请求地址。</param>
 /// <param name="postData">要发送的数据流。</param>
 /// <param name="wwwForm">WWW 表单。</param>
 /// <param name="priority">Web 请求任务的优先级。</param>
 /// <param name="userData">用户自定义数据。</param>
 /// <returns>新增 Web 请求任务的序列编号。</returns>
 private int AddWebRequest(string webRequestUri, byte[] postData, WWWForm wwwForm, int priority, object userData)
 {
     return(m_WebRequestManager.AddWebRequest(webRequestUri, postData, priority, new WWWFormInfo(wwwForm, userData)));
 }