public void Dispose()
{
app.BeginRequest -= ContextBeginRequest;
app.EndRequest -= ContextEndRequest;
}
返回给我这个错误:
仅在 IHttpModule 初始化期间才能将事件处理程序绑定到 HttpApplication 事件。
为什么?我可以忽略这些 Dispose
语句吗?
public void Dispose()
{
app.BeginRequest -= ContextBeginRequest;
app.EndRequest -= ContextEndRequest;
}
返回给我这个错误:
仅在 IHttpModule 初始化期间才能将事件处理程序绑定到 HttpApplication 事件。
为什么?我可以忽略这些 Dispose
语句吗?