protected void Page_Load(object sender, EventArgs e) { // Make session dirty Session["x"] = "x"; SessionTests.mtxWriter.Set(); SessionTests.WaitSyncCreation(false); }
void Application_BeginRequest(object sender, EventArgs e) { //System.Diagnostics.Debugger.Break(); if (HttpContext.Current.Request.Path == "/read.aspx") { // Signaler SessionTests.mtxReader = new ManualResetEvent(false); SessionTests.WaitSyncCreation(true); } else if (HttpContext.Current.Request.Path == "/write.aspx") { SessionTests.mtxWriter = new ManualResetEvent(false); } }