public static PageSessionCollection GetInstance() { if (_instance == null) { _instance = new PageSessionCollection(); } return(_instance); }
public void Init(ThreadEntity threadEntity, WebSetting.WebSettingItem webSetting) { _threadEntity = threadEntity; _htmlContainer = new HTMLContainer(_threadEntity.WebSetting.Encoding); _server = _threadEntity.WebContext.Server; _url = threadEntity.URL; _updateLocalCache = false; _response = new PageResponse(_threadEntity, _htmlContainer); _request = new PageRequest(_threadEntity); _pageData = new PageData(); _pageSession = PageSessionCollection.GetInstance().GetSession(_threadEntity); _webSetting = webSetting; }
public static PageSessionCollection GetInstance() { if (_instance == null) { _instance = new PageSessionCollection(); } return _instance; }