/// <summary> /// 创建单列模式 /// </summary> /// <returns></returns> public static RequestManagerFactory CreateInstance() { if (requestManagerFactory == null) { requestManagerFactory = new RequestManagerFactory(); } return(requestManagerFactory); }
protected override void OnPreInit(EventArgs e) { this.InititalLoginUser(); string requestUrl = Request.Url.AbsoluteUri; var requestManager = RequestManagerFactory.CreateInstance().CreateBaseRequestManager(requestUrl); if (null != requestManager) { requestManager.ProcessRequest(this); } }