コード例 #1
0
ファイル: ajax.cs プロジェクト: iLanceS/fastCSharp
 private void push()
 {
     webCall      = null;
     socket       = null;
     domainServer = null;
     request      = null;
     form         = null;
     call         = null;
     typePool <loader> .PushNotNull(this);
 }
コード例 #2
0
ファイル: ajax.cs プロジェクト: iLanceS/fastCSharp
 /// <summary>
 /// 表单回调处理
 /// </summary>
 /// <param name="form">HTTP请求表单</param>
 public void OnGetForm(requestForm form)
 {
     if (form == null)
     {
         push();
     }
     else
     {
         SocketIdentity = form.Identity;
         Load(form);
     }
 }
コード例 #3
0
ファイル: ajax.cs プロジェクト: iLanceS/fastCSharp
            /// <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);
            }