AjaxSyncHttpHandler.cs
上传用户:szgaoree
上传日期:2009-01-05
资源大小:74k
文件大小:1k
- using System;
- using System.Reflection;
- using System.Web;
- using System.Threading;
- using System.Web.SessionState;
- namespace AjaxPro
- {
- public class AjaxSyncHttpHandler : IHttpHandler
- {
- private IAjaxProcessor p;
- public AjaxSyncHttpHandler(IAjaxProcessor p) : base()
- {
- this.p = p;
- }
- #region IHttpHandler Members
- public void ProcessRequest(HttpContext context)
- {
- AjaxProcHelper m = new AjaxProcHelper(p);
- m.Run();
- }
- public bool IsReusable
- {
- get
- {
- // TODO: Add AjaxAsyncHttpHandler.IsReusable getter implementation
- return false;
- }
- }
- #endregion
- }
- public class AjaxSyncHttpHandlerSession : AjaxSyncHttpHandler, IRequiresSessionState
- {
- public AjaxSyncHttpHandlerSession(IAjaxProcessor p) : base(p){}
- }
- public class AjaxSyncHttpHandlerSessionReadOnly : AjaxSyncHttpHandler, IReadOnlySessionState
- {
- public AjaxSyncHttpHandlerSessionReadOnly(IAjaxProcessor p) : base(p){}
- }
- }