protected void Page_Load(object sender, EventArgs e) { uv = Request["uv"]; aid = Convert.ToInt32(Request["aid"]); share = Request["share"]; spreadUserID = Request["spreaduserid"]; bll = new BLLMonitor(); activity = bll.Get <JuActivityInfo>(" JuActivityID = " + aid.ToString()); if (activity == null) { this.ViewState["mplanId"] = Request["aid"]; return; } this.ViewState["mplanId"] = activity.MonitorPlanID; }
private static void TimerCallback(Object o) { if (!locked) { locked = true; BLLMonitor.RecordData(); // Display the date/time when this method got called. Console.WriteLine("In TimerCallback: " + DateTime.Now); // Force a garbage collection to occur for this demo. GC.Collect(); locked = false; } else { Console.WriteLine("Tried to run, but it's locked right now."); } }