/// <summary> /// 加载页面视图 /// </summary> /// <param name="socket">HTTP套接字接口</param> /// <param name="view">WEB视图接口</param> internal void LoadAjax(Http.SocketBase socket, AutoCSer.WebView.View view) { if (socket.HttpHeader.Method == Http.MethodType.GET) { if (view.LoadHeader(this, socket)) { view.LoadAjax(); } } else { socket.ResponseErrorIdentity(Http.ResponseState.ServerError500); } }
/// <summary> /// 加载页面视图[TRY] /// </summary> /// <param name="socket">HTTP套接字接口</param> /// <param name="view">WEB视图接口</param> /// <param name="isAsynchronous">是否异步</param> /// <param name="isAwaitMethod">是否存在 await 函数</param> protected void loadPage(Http.SocketBase socket, AutoCSer.WebView.View view, bool isAsynchronous, bool isAwaitMethod) { if (socket.HttpHeader.Method == Http.MethodType.GET) { view.SetAsynchronousAwaitMethod(isAsynchronous, isAwaitMethod); if (view.LoadHeader(this, socket)) { view.LoadPage(); } } else { socket.ResponseErrorIdentity(Http.ResponseState.ServerError500); } }
protected void loadView(AutoCSer.WebView.View view, AutoCSer.WebView.AjaxMethodInfo ajaxInfo) { DomainServer.LoadAjax(Socket, view); }
protected void loadView(AutoCSer.WebView.View view, AutoCSer.WebView.AjaxMethodInfo ajaxInfo, bool isAsynchronous, bool isAwaitMethod) { view.SetAsynchronousAwaitMethod(isAsynchronous, isAwaitMethod); DomainServer.LoadAjax(Socket, view); }