private void push() { webCall = null; socket = null; domainServer = null; request = null; form = null; call = null; typePool <loader> .PushNotNull(this); }
/// <summary> /// 表单回调处理 /// </summary> /// <param name="form">HTTP请求表单</param> public void OnGetForm(requestForm form) { if (form == null) { push(); } else { SocketIdentity = form.Identity; Load(form); } }
/// <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); }