Exemple #1
0
 private void push()
 {
     webCall      = null;
     socket       = null;
     domainServer = null;
     request      = null;
     form         = null;
     call         = null;
     typePool <loader> .PushNotNull(this);
 }
Exemple #2
0
 /// <summary>
 /// 表单回调处理
 /// </summary>
 /// <param name="form">HTTP请求表单</param>
 public void OnGetForm(requestForm form)
 {
     if (form == null)
     {
         push();
     }
     else
     {
         SocketIdentity = form.Identity;
         Load(form);
     }
 }
Exemple #3
0
            /// <summary>
            /// WEB视图表单加载
            /// </summary>
            /// <param name="form">HTTP请求表单</param>
            internal void Load(requestForm form)
            {
                long       identity = SocketIdentity;
                socketBase socket   = this.socket;

                try
                {
                    this.form = form;
                    webCall.CallAjax(call.CallIndex, this);
                    return;
                }
                catch (Exception error)
                {
                    log.Error.Add(error, null, false);
                }
                finally { push(); }
                socket.ResponseError(identity, response.state.ServerError500);
            }